Пример #1
0
 public static int PeekInt(this BitBuffer buffer, Int32Compressor compressor)
 {
     if (compressor.RequiredBits > Config.VARINT_FALLBACK_SIZE)
     {
         return(compressor.Unpack(buffer.PeekUInt()));
     }
     else
     {
         return(compressor.Unpack(buffer.Peek(compressor.RequiredBits)));
     }
 }
Пример #2
0
 public static EntityId PeekEntityId(this BitBuffer buffer)
 {
     return(new EntityId(buffer.PeekUInt()));
 }
Пример #3
0
 public static Tick PeekTick(this BitBuffer buffer)
 {
     return(new Tick(buffer.PeekUInt()));
 }