Interface DataConvention
public interface DataConvention
A convention that defines how to retrieve the contents of a data.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet theValueGetterSetter
that accesses the element segment, as aByteBuffer
.default void
Emit code to drop the data.
-
Method Details
-
byteBuffer
ValueGetterSetter byteBuffer()Get theValueGetterSetter
that accesses the element segment, as aByteBuffer
.- Returns:
- A
ValueGetterSetter
to the array.
-
emitDrop
Emit code to drop the data.By default, this stores a new 0-length
ByteBuffer
tobyteBuffer()
.- Parameters:
ib
- The instruction builder.fx
- TheWasmOps.DATA_DROP
instruction.
-