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)); }
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)); }
public object Deserialize(System.IO.Stream stream) { return(ZigZag.DeserializeInt64(stream)); }
public object Deserialize(System.IO.Stream stream) { return(BitConverter.Int64BitsToDouble(ZigZag.DeserializeInt64(stream))); }