public static ushort ReadUint16Be(byte[] bytes, int offset) { return (ushort) ((bytes[offset] << 8) | bytes[offset + 1]); }