Example #1
0
 /// <summary>
 /// Writes Big Endian long
 /// </summary>
 public void WriteLong(long value)
 {
     Write(BeConverter.GetBytes(value));
 }
Example #2
0
 /// <summary>
 /// Writes BE int
 /// </summary>
 public void WriteInt32(int value)
 {
     Write(BeConverter.GetBytes(value));
 }
Example #3
0
 public int ReadInt32()
 {
     _stream.Read(_buffer, 0, 4);
     return(BeConverter.ToInt32(_buffer));
 }
Example #4
0
 /// <summary>
 /// Writes BE int 16
 /// </summary>
 public void WriteInt16(short value)
 {
     Write(BeConverter.GetBytes(value));
 }
Example #5
0
 /// <summary>
 /// Parses a ushort from the following 2 bytes
 /// </summary>
 public short ReadInt16()
 {
     _stream.Read(_buffer, 0, 2);
     return(BeConverter.ToInt16(_buffer));
 }