MCPcopy
hub / github.com/grpc/grpc-go / Slice

Method Slice

mem/buffers.go:59–59  ·  view source on GitHub ↗

Slice returns a new Buffer that is a view into this buffer's data from [start:end). The buffer is not modified. Panics if the buffer has been freed or if start/end are out of bounds.

(start, end int)

Source from the content-addressed store, hash-verified

57 // from [start:end). The buffer is not modified. Panics if the buffer
58 // has been freed or if start/end are out of bounds.
59 Slice(start, end int) Buffer
60
61 split(n int) (left, right Buffer)
62 read(buf []byte) (int, Buffer)

Implementers 2

buffermem/buffers.go
emptyBuffermem/buffers.go

Calls

no outgoing calls

Tested by 15

TestBuffer_SliceMethod · 0.76
equalLogEntryFunction · 0.52
TestAddressMap_KeysMethod · 0.52
TestAddressMap_AllMethod · 0.52
TestEndpointMap_AllMethod · 0.52
compareUpdateMetadataFunction · 0.52
TestBuffer_SliceBasicMethod · 0.52
TestBuffer_SliceEmptyMethod · 0.52