public static uint ReadUint32Be(byte[] bytes, int offset) { return (((uint) bytes[offset + 0]) << 24) | (((uint) bytes[offset + 1]) << 16) | (((uint) bytes[offset + 2]) << 8) | (((uint) bytes[offset + 3]) << 0); }