pub(crate) fn read_chunk<R>(
r: &mut R,
) -> ImageResult<Option<(Cursor<Vec<u8>>, WebPRiffChunk)>>where
R: Read,
Expand description
Reads a chunk Returns an error if the chunk header is not a valid webp header or some other reading error Returns None if and only if we hit end of file reading the four character code of the chunk