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