Example #1
0
 internal int PopInteger()
 {
     return(BinaryEncoding.DecodeInt(ReadBytes(4)));
 }
Example #2
0
 internal short PopShort()
 {
     return(BinaryEncoding.DecodeShort(ReadBytes(2)));
 }
Example #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)));
 }
Example #4
0
 internal byte PopByte()
 {
     return(BinaryEncoding.DecodeByte(ReadBytes(1)));
 }
Example #5
0
 public override int ParseLength(byte[] data)
 {
     return(BinaryEncoding.DecodeInt(data));
 }