Example #1
0
 public int ReadInt32()
 {
     _stream.Read(_buffer, 0, 4);
     return(BeConverter.ToInt32(_buffer));
 }
Example #2
0
 /// <summary>
 /// Parses a ushort from the following 2 bytes
 /// </summary>
 public short ReadInt16()
 {
     _stream.Read(_buffer, 0, 2);
     return(BeConverter.ToInt16(_buffer));
 }