Пример #1
0
 public long ReadVarLong()
 {
     return(VarInt.ReadSInt64(BaseStream));
 }
Пример #2
0
 public int ReadVarInt()
 {
     return(VarInt.ReadSInt32(BaseStream));
 }
Пример #3
0
 public int ReadLenght()
 {
     return((int)VarInt.ReadUInt32(BaseStream));
 }
Пример #4
0
 public void WriteLength(int value)
 {
     VarInt.WriteUInt32(BaseStream, (uint)value);
 }
Пример #5
0
 public void WriteVarLong(long value)
 {
     VarInt.WriteSInt64(BaseStream, value);
 }
Пример #6
0
 public void WriteVarInt(int value)
 {
     // VarInt is LE by default
     VarInt.WriteSInt32(BaseStream, value);
 }