Beispiel #1
0
        public void WriteVarlong(long l)
        {
            var count = Varint.PutVarlong(_buf, l);

            _binaryWriter.Write(_buf, 0, count);
        }
Beispiel #2
0
 public long ReadVarlong()
 {
     return(Varint.ReadVarint(_binaryReader));
 }
Beispiel #3
0
        public void WriteVarint(int i)
        {
            var count = Varint.PutVarint(_buf, i);

            _binaryWriter.Write(_buf, 0, count);
        }
Beispiel #4
0
 public int ReadVarint()
 {
     return(Varint.ReadVarint(_binaryReader));
 }