private static boolean checkArgs(final int size, final byte[] bytes) throws ImagingException {
        if (size != bytes.length) {
            throw new ImagingException("Chunk size must match bytes length");
        }
        return true;
    }
A WebP image is composed of several chunks. This is the base class for the chunks, used by the parser.

@see <a href="https://developers.google.com/speed/webp/docs/riff_container">WebP Container Specification</a>
@since 1.0.0-alpha4
src/main/java/org/apache/commons/imaging/formats/webp/chunks/AbstractWebPChunk.java