public GifHeaderParser setData(byte[] data) {
        reset();
        if (data != null) {
            rawData = ByteBuffer.wrap(data);
            rawData.rewind();
            rawData.order(ByteOrder.LITTLE_ENDIAN);
        } else {
            rawData = null;
            header.status = GifDecoder.STATUS_OPEN_ERROR;
        }
        return this;
    }
A class responsible for creating {@link GifHeader}s from data representing animated
gifs.
core/src/main/java/com/bumptech/glide/gifdecoder/GifHeaderParser.java