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