code: public static int writeDelimitedTo(DataOutput out, Object message, Schema schema) 
      throws IOException
      {
          final LinkedBuffer buffer = new LinkedBuffer(LinkedBuffer.MIN_BUFFER_SIZE);
          final ProtobufOutput output = new ProtobufOutput(buffer);
          schema.writeTo(output, message);
          final int size = output.getSize();
          ProtobufOutput.writeRawVarInt32Bytes(out, size);
          
          LinkedBuffer.writeTo(out, buffer);
          //final int msgSize = LinkedBuffer.writeTo(out, buffer);
          //assert size == msgSize;
          
          return size;
      }
docs: Used by the code generated messages that implement {@link java.io.Externalizable}.
  Writes to the {@link DataOutput}.
  
  @return the size of the message.