Codecs allow a writer to deal with the case where we have a buffer overflow when attempting to write all data to the buffer.
Codecs allow a writer to deal with the case where we have a buffer overflow
when attempting to write all data to the buffer. This lets the writer return
some state indicating more data needs to be written. This state is then
given to a writeMore
method so it can finish the writing. It may take
several calls to writeMore
before it all is finally written.