@Override
    public void writeBytes(int fieldNumber, ByteBuffer value, boolean repeated) throws IOException
    {

        writeByteRange(false, fieldNumber, value.array(), value.arrayOffset() + value.position(),
                value.remaining(), repeated);

    }
Before serializing a message/object tied to a schema, this should be called. This also resets the internal state
of this output.
protostuff-msgpack/src/main/java/io/protostuff/MsgpackOutput.java