public static <T> byte[] toByteArray(T message, Schema<T> schema)
    {
        return toByteArray(message, schema, false);
    }
Computes the buffer size and serializes the {@code message} tied to a schema into a byte array.
protostuff-core/src/test/java/io/protostuff/CodedOutput.java