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