public object Deserialize(System.IO.Stream stream)
        {
            long count = ZigZag.DeserializeInt64(stream);

            if (count == 1)
            {
                return(null);
            }
            int c = (int)(count >> 1);

            return(stream.ReadBytes(c));
        }
Beispiel #2
0
        public object Deserialize(System.IO.Stream stream)
        {
            long count = ZigZag.DeserializeInt64(stream);

            if (count == 1)
            {
                return(null);
            }
            var c     = (int)(count >> 1);
            var bytes = stream.ReadBytes(c);

            return(Encoding.UTF8.GetString(bytes));
        }
Beispiel #3
0
 public object Deserialize(System.IO.Stream stream)
 {
     return(ZigZag.DeserializeInt64(stream));
 }
Beispiel #4
0
 public object Deserialize(System.IO.Stream stream)
 {
     return(BitConverter.Int64BitsToDouble(ZigZag.DeserializeInt64(stream)));
 }