Esempio n. 1
0
 internal int PopInteger()
 {
     return(BinaryEncoding.DecodeInt(ReadBytes(4)));
 }
Esempio n. 2
0
 internal short PopShort()
 {
     return(BinaryEncoding.DecodeShort(ReadBytes(2)));
 }
Esempio n. 3
0
 /// <summary>
 /// Reads a single byte as a boolean and returns it. False is returned if there is no remaining content.
 /// </summary>
 private bool PopBoolean()
 {
     return(BinaryEncoding.DecodeBool(ReadBytes(1)));
 }
Esempio n. 4
0
 internal byte PopByte()
 {
     return(BinaryEncoding.DecodeByte(ReadBytes(1)));
 }
Esempio n. 5
0
 public override int ParseLength(byte[] data)
 {
     return(BinaryEncoding.DecodeInt(data));
 }