outputState.setDst(dst);
if (!outputState.isHeaderWritten()) {
// writes a 5-byte header that the decoder will use in order
// to achieve parity with the encoder's properties.
encoder.writeCoderProperties(outputState.getDst());
outputState.setHeaderWritten(true);
}
encoder.code(outputState, -1, -1);
dst = outputState.getDst();