docs: public static int writeListTo(final OutputStream out, final Vector messages, 
              final Schema schema, final LinkedBuffer buffer) throws IOException
      {
          if(buffer.start != buffer.offset)
              throw new IllegalArgumentException("Buffer previously used and had not been reset.");
          
          final int size = messages.size();
          if(size == 0)
              return 0;
          
          final ProtostuffOutput output = new ProtostuffOutput(buffer, out);
          output.sink.writeVarInt32(size, output, buffer);
  
          for(int i = 0; i < messages.size(); i++)
          {
          	Object m = messages.elementAt(i);
              schema.writeTo(output, m);
              output.sink.writeByte((byte)WireFormat.WIRETYPE_TAIL_DELIMITER, output, 
                      buffer);
          }
          
          LinkedBuffer.writeTo(out, buffer);
          
          return output.size;
      }