MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / NextReturnsSafeSlice

Method NextReturnsSafeSlice

internal/byte_input.go:17–17  ·  view source on GitHub ↗

NextReturnsSafeSlice returns true if Next() returns a safe slice as opposed to a slice that points to an underlying buffer possibly owned by another system. When NextReturnsSafeSlice returns false, the result from Next() should be copied before it is modified (i.e., it is immutable).

()

Source from the content-addressed store, hash-verified

15 // When NextReturnsSafeSlice returns false, the result from Next() should be copied
16 // before it is modified (i.e., it is immutable).
17 NextReturnsSafeSlice() bool
18 // ReadUInt32 reads uint32 with LittleEndian order
19 ReadUInt32() (uint32, error)
20 // ReadUInt16 reads uint16 with LittleEndian order

Callers 1

readFromMethod · 0.65

Implementers 2

ByteBufferinternal/byte_input.go
ByteInputAdapterinternal/byte_input.go

Calls

no outgoing calls

Tested by

no test coverage detected