@Override
    public void writeBool(int fieldNumber, boolean value, boolean repeated) throws IOException
    {
        ImmutableBooleanValue val = value ? ImmutableBooleanValueImpl.TRUE : ImmutableBooleanValueImpl.FALSE;
        generator.pushValue(schema, fieldNumber, val, 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