@Override public void copyTo(ByteBuffer buffer) { buffer.put((byte) data.getType().ordinal()); buffer.put(data.bufferForData()); }
/** * Return the {@link Type} that describes the underlying data represented by this Value. * * @return the type */ public Type getType() { return data.getType(); }