public static <T> void writeTo(MessagePacker packer, T message, Schema<T> schema, boolean numeric)
            throws IOException
    {
        MsgpackGenerator generator = new MsgpackGenerator(numeric);
        MsgpackOutput output = new MsgpackOutput(generator, schema);
        schema.writeTo(output, message);
        generator.writeTo(packer);
    }
Serializes the {@code message} into an {@link OutputStream} using the given {@code schema}.
protostuff-msgpack/src/main/java/io/protostuff/MsgpackIOUtil.java