public static void checkOffsetAndCount ( final byte [ ] buffer , final int byteOffset , final int byteCount ) { // Ensure we throw a NullPointerException instead of a JavascriptException in case the // given buffer is null. if ( buffer == null ) { throw new NullPointerException ( ) ; } checkOffsetAndCount ( buffer . length , byteOffset , byteCount ) ; }
Validates the offset and the byte count for the given array of bytes .