GetCompressorWorkBufferSize
Gets the size of the work buffer needed by a compression engine.
Synopsis
int32 GetCompressorWorkBufferSize(const TagArg *tags);
int32 GetCompressorWorkBufferSizeVA(uint32 tags, ...);
Description
Returns the size of the work buffer needed by a compression engine. You can then allocate a buffer of that size and supply the pointer with the COMP_TAG_WORKBUFFER tag when creating a compression engine. If the COMP_TAG_WORKBUFFER tag is not supplied when creating a compressor, the folio automatically allocates the memory needed for the compression engine.
Arguments
- tags
- A pointer to an array of tag arguments containing extra data for this function. This must currently always be NULL.
Return Value
A positive value indicates the size of the work buffer needed in bytes, while a negative value indicates an error. Possible error codes currently include:
- COMP_ERR_BADTAG
- An unknown tag was supplied.
Implementation
Folio call implemented in compression folio V24.
Associated Files
compression.h
See Also
CreateCompressor
(), DeleteCompressor()