public static int [ ] fromByte ( byte [ ] b , int depth , boolean isBe ) { if ( depth == 24 ) if ( isBe ) return from24BE ( b ) ; else return from24LE ( b ) ; else if ( depth == 16 ) if ( isBe ) return from16BE ( b ) ; else return from16LE ( b ) ; throw new NotSupportedException ( "Conversion from " + depth + "bit " + ( isBe ? "big endian" : "little endian" ) + " is not supported." ) ; }
Generic byte - array to integer - array conversion