public void serialize(Serializer buf) {
        buf.putInt(null, data.length);
        buf.put(null, data);
    }
Serializes the content of this data into the given byte buffer.

@param buf the buffer to serialize to
searchlib/src/main/java/com/yahoo/searchlib/aggregation/RawData.java