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