CrImage::WEBP::RIFFReader
Inherits Reference / Object
RIFF (Resource Interchange File Format) chunk reader for WEBP.
Parses RIFF container structure, iterating through chunks and providing access to chunk data. Handles padding bytes and validates chunk boundaries.
Constructors
new(io : IO, total_len : UInt32)
SourceInstance methods
next
Reads the next chunk from the RIFF container.
Returns tuple of {chunk_id, chunk_length, chunk_data_io} or nil if no more chunks. The IO provides access to chunk data.
Raises: FormatError if chunk structure is invalid