public static ushort ReadUInt16(Stream stream)
 {
     byte[] buffer = new byte[2];
     stream.Read(buffer, 0, 2);
     return(BigEndianConverter.ToUInt16(buffer, 0));
 }
 public static ushort ReadUInt16(byte[] buffer, ref int offset)
 {
     offset += 2;
     return(BigEndianConverter.ToUInt16(buffer, offset - 2));
 }