true if enough bytes are available, false when more input is needed.bool requirePendingInput(size_t n, bool finalizing, string truncatedMsg)Ensure at least n bytes are available in the pending buffer.
n | Minimum number of bytes needed. |
finalizing | Whether the caller is finish() (true) or write() (false). |
truncatedMsg | Error message used when finalizing with incomplete input. |
true if enough bytes are available, false when more input is needed.CompressionErrorCode.TRUNCATED when finalizing and insufficient bytes remain.