doProcessing abstract method

CodecResult doProcessing(
  1. CB inputBuffer,
  2. CB outputBuffer
)

Subclass Responsibility: Algorithm-specific coding/decoding handler

A request is being made to process bytes from the inputBuffer and place the results in the outputBuffer

The inputBuffer.readPtr is a CB buffer to the read position and inputBuffer.unreadCount is the maximum number of bytes that can be read from the buffer.

The resulting bytes can be placed in the outputBuffer. Callers will need to take care to write only the amount that can be written. The outputBuffer.writePtr is a CB buffer to the write position and outputBuffer.unwrittenCount is the number of bytes that can be written to the buffer.

Callers do not need to adjust read/write positions of the CodecBuffer. This is handled by the framework upon receiving the CodecResult returned from this method.

Return a CodecResult describing the number of bytes read/written during the processing routine.

Implementation

CodecResult doProcessing(CB inputBuffer, CB outputBuffer);