public void serialize(Serializer buf) {
        buf.put(null, raw);
    }
Serializes the content of this global id into the given byte buffer.

@param buf the buffer to serialize to
document/src/main/java/com/yahoo/document/GlobalId.java