readContentBuffer

fnubyte[] readContentBuffer(ArchiveReader reader, ref const EntryInfo entry)

Read entry content into a newly allocated buffer.

Convenience function that collects all chunks from the ContentSink into a single contiguous ubyte array.

Parameters

readerThe archive reader.
entryThe entry whose content to read.

Returns

The entry content as a newly allocated ubyte array.

Note

Prefer using reader.readContent(entry) method instead.