Non-copying constructors and extractors for Buf.ByteBuffer.
Non-copying constructors and extractors for Buf.ByteBuffer.
The "owned" APIs may provide direct access to a Buf's underlying implementation; and so mutating the underlying data structure invalidates a Buf's immutability constraint. Users must take care to handle this data immutably.
Shared for analogs that make defensive copies.
Copying constructors and extractors for Buf.ByteBuffer.
Copying constructors and extractors for Buf.ByteBuffer.
A "shared" Buf means that steps are taken to ensure that the produced Buf shares no state with the producer. This typically implies defensive copying and should be used when you do not control the lifecycle or usage of the passed in data.
Owned for analogs that do not make defensive copies.
Coerce a generic buffer to a Buf.ByteBuffer, potentially without copying data.
Extract a read-only view of the underlying java.nio.ByteBuffer.