Lz4Decompressor.requirePendingInput

private bool requirePendingInput(size_t n, bool finalizing, string truncatedMsg)

Ensure at least n bytes are available in the pending buffer.

Parameters

nMinimum number of bytes needed.
finalizingWhether the caller is finish() (true) or write() (false).
truncatedMsgError message used when finalizing with incomplete input.

Returns

true if enough bytes are available, false when more input is needed.

Throws

CompressionErrorCode.TRUNCATED when finalizing and insufficient bytes remain.