doFlush abstract method

int doFlush(
  1. CB outputBuffer
)

Subclass Responsibility: Perform algorithm-specific flush.

Many algorithms have internal buffering applied within the native shared library in addition to the CodecBuffers in the framework.

This call should flush up to outputBuffer.unwrittenCount into the output buffer starting at outputBuffer.writePtr.

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

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

Return the number of bytes flushed (<= outputBuffer.unwrittenCount)

Implementation

int doFlush(CB outputBuffer);