예제 #1
0
 public static ulong?ReadCompressedNullableULong(this IReadBytes stream)
 {
     if (!stream.ReadCompressedBool())
     {
         return(null);
     }
     return(stream.ReadCompressedULong());
 }
        public static long ReadCompressedLong(this IReadBytes input)
        {
            var value = input.ReadCompressedULong();

            return((long)((value >> 1) ^ (~(value & 1) + 1)));
        }