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.
See also
Owned for analogs that do not make defensive copies.
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.