@Override
    protected <T> void writeDelimitedTo(OutputStream out, T message, Schema<T> schema)
            throws IOException
    {
        final ComputedSizeOutput sizeCount = new ComputedSizeOutput(false);
        schema.writeTo(sizeCount, message);
        CodedOutput.writeRawVarInt32Bytes(out, sizeCount.getSize());
        final CodedOutput output = CodedOutput.newInstance(out);
        schema.writeTo(output, message);
        output.flush();
    }
Test the streaming (computed) output capability of {@link CodedOutput}.

@author David Yu
@created Oct 7, 2010
protostuff-core/src/test/java/io/protostuff/ProtobufCodedOutputTest.java