question: public static byte [ ] truncate ( byte [ ] array , int newLength ) { if ( array . length < newLength ) { return array ; } else { byte [ ] truncated = new byte [ newLength ] ; System . arraycopy ( array , 0 , truncated , 0 , newLength ) ; return truncated ; } }
target:  Truncates the given array to the request length.