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

Method Bytes

go/fory/buffer.go:473–475  ·  view source on GitHub ↗

Bytes returns all written bytes from the buffer (from 0 to writerIndex).

()

Source from the content-addressed store, hash-verified

471
472// Bytes returns all written bytes from the buffer (from 0 to writerIndex).
473func (b *ByteBuffer) Bytes() []byte {
474 return b.GetByteSlice(0, b.writerIndex)
475}
476
477func (b *ByteBuffer) SetWriterIndex(index int) {
478 b.writerIndex = index

Calls 1

GetByteSliceMethod · 0.95