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

Method Slice

go/fory/buffer.go:464–466  ·  view source on GitHub ↗
(start, length int)

Source from the content-addressed store, hash-verified

462}
463
464func (b *ByteBuffer) Slice(start, length int) *ByteBuffer {
465 return NewByteBuffer(b.data[start : start+length])
466}
467
468func (b *ByteBuffer) WriterIndex() int {
469 return b.writerIndex

Callers 15

WriteBoolSliceFunction · 0.80
ReadBoolSliceFunction · 0.80
WriteInt8SliceFunction · 0.80
ReadInt8SliceFunction · 0.80
WriteInt16SliceFunction · 0.80
ReadInt16SliceFunction · 0.80
WriteInt32SliceFunction · 0.80
ReadInt32SliceFunction · 0.80
WriteInt64SliceFunction · 0.80
ReadInt64SliceFunction · 0.80
WriteUint16SliceFunction · 0.80
ReadUint16SliceFunction · 0.80

Calls 1

NewByteBufferFunction · 0.85

Tested by

no test coverage detected