code: public static <T> int writeListTo(final OutputStream out, final List<T> messages, 
              final Schema<T> 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(T m : messages)
          {
              schema.writeTo(output, m);
              output.sink.writeByte((byte)WireFormat.WIRETYPE_TAIL_DELIMITER, output, 
                      buffer);
          }
          
          LinkedBuffer.writeTo(out, buffer);
          
          return output.size;
      }
docs: Serializes the {@code messages} (delimited) into an {@link OutputStream}
  using the given schema.
  
  @return the bytes written