doFinalize abstract method

int doFinalize(
  1. CB outputBuffer
)

Subclass Responsibility: Perform algorithm-specific finalization.

Algorithm-specific finalization provides the opportunity to perform write activities such as inserting trailing data to the output.

The framework will perform multiple rounds of this call until all data is finalized into the destination that the framework has.

Callers should answer 0 if there is no additional data to finalize.

Return the number of bytes added for finalization (<= outputBuffer.unwrittenCount).

Implementation

int doFinalize(CB outputBuffer);