Lines Matching refs:buffer
69 * Marshal the specified object instance (value) into a byte buffer.
74 * @param value the value of type T that we wish to write into the byte buffer
75 * @param buffer the byte buffer into which the marshaled object will be written
77 public abstract void marshal(T value, ByteBuffer buffer);
81 * into a byte buffer using the given {@code nativeType}.
83 * <p>If the size of this {@code T} instance when serialized into a buffer is always constant,
89 * @param value the value of type T that we wish to write into the byte buffer
90 * @return the size that would need to be written to the byte buffer
103 * Unmarshal a new object instance from the byte buffer into its managed type.
108 * @param buffer the byte buffer, from which we will read the object
109 * @return a new instance of type T read from the byte buffer
111 public abstract T unmarshal(ByteBuffer buffer);