MCPcopy Create free account
hub / github.com/apache/fory / NewByteBuffer

Function NewByteBuffer

go/fory/buffer.go:36–38  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

34}
35
36func NewByteBuffer(data []byte) *ByteBuffer {
37 return &ByteBuffer{data: data}
38}
39
40func NewByteBufferFromReader(r io.Reader, bufferSize int) *ByteBuffer {
41 if bufferSize <= 0 {

Calls

no outgoing calls