Deflates the |hfa|, which has |hfa.length| header fields, into
the |buf| of length |buf.length|.
If |buf| is not large enough to store the deflated header block,
this function fails with ErrorCode.INSUFF_BUFSIZE. The
caller should use Deflater.upperBound() to know the upper
bound of buffer size required to deflate given header fields.
Once this function fails, subsequent call of this function always
returns ErrorCode.HEADER_COMP.
After this function returns, it is safe to delete the |hfa|.
This function returns 0 if it succeeds, or one of the following
negative error codes:
Deflates the |hfa|, which has |hfa.length| header fields, into the |buf| of length |buf.length|.
If |buf| is not large enough to store the deflated header block, this function fails with ErrorCode.INSUFF_BUFSIZE. The caller should use Deflater.upperBound() to know the upper bound of buffer size required to deflate given header fields.
Once this function fails, subsequent call of this function always returns ErrorCode.HEADER_COMP.
After this function returns, it is safe to delete the |hfa|.
This function returns 0 if it succeeds, or one of the following negative error codes:
ErrorCode.HEADER_COMP Deflation process has failed. ErrorCode.INSUFF_BUFSIZE The provided |buflen| size is too small to hold the output.