public static IList <KeyValuePair <Guid, IList <int> > > Decode(FrameIterator iterator)
        {
            var listV = ListMultiFrameCodec.Decode(iterator, ListIntegerCodec.Decode);
            var listK = ListUUIDCodec.Decode(iterator);

            var result = new List <KeyValuePair <Guid, IList <int> > >(listK.Count);

            for (var i = 0; i < listK.Count; i++)
            {
                result.Add(new KeyValuePair <Guid, IList <int> >(listK[i], listV[i]));
            }
            return(result);
        }
Esempio n. 2
0
        public static IList <KeyValuePair <long, byte[]> > Decode(FrameIterator iterator)
        {
            var listV = ListMultiFrameCodec.Decode(iterator, ByteArrayCodec.Decode);
            var listK = ListLongCodec.Decode(iterator);

            var result = new List <KeyValuePair <long, byte[]> >(listV.Count);

            for (var i = 0; i < listK.Count; i++)
            {
                result.Add(new KeyValuePair <long, byte[]>(listK[i], listV[i]));
            }

            return(result);
        }