private static final int gatherPartialIntLE ( final byte [ ] data , final int index , final int available ) { int i = data [ index ] & 0xFF ; if ( available > 1 ) { i |= ( data [ index + 1 ] & 0xFF ) << 8 ; if ( available > 2 ) { i |= ( data [ index + 2 ] & 0xFF ) << 16 ; } } return i ; }
gather a partial int from the specified index using the specified number of bytes into the byte array