static int load32 ( byte [ ] source , int offset ) { // TODO(user): Measure the benefit of delegating this to LittleEndianBytes also. return ( source [ offset ] & 0xFF ) | ( ( source [ offset + 1 ] & 0xFF ) << 8 ) | ( ( source [ offset + 2 ] & 0xFF ) << 16 ) | ( ( source [ offset + 3 ] & 0xFF ) << 24 ) ; }
Load 4 bytes from the provided array at the indicated offset .