Helper methods for encoding and decoding integer values.
Beispiel #1
0
 public void WriteVarUInt64(ulong value)
 {
     IntegerHelper.EncodeVarUInt64(mMemoryStream, value);
 }
Beispiel #2
0
 public void WriteVarUInt32(uint value)
 {
     IntegerHelper.EncodeVarUInt32(mMemoryStream, value);
 }
Beispiel #3
0
 public void WriteVarUInt16(ushort value)
 {
     IntegerHelper.EncodeVarUInt16(mMemoryStream, value);
 }
Beispiel #4
0
 public ulong ReadVarUInt64()
 {
     return(IntegerHelper.DecodeVarUInt64(mMemoryStream));
 }
Beispiel #5
0
 public uint ReadVarUInt32()
 {
     return(IntegerHelper.DecodeVarUInt32(mMemoryStream));
 }
Beispiel #6
0
 public ushort ReadVarUInt16()
 {
     return(IntegerHelper.DecodeVarUInt16(mMemoryStream));
 }