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

Method ReadOnlyData

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

ReadOnlyData returns the underlying byte slice. Note that it is undefined behavior to modify the contents of this slice in any way.

()

Source from the content-addressed store, hash-verified

46 // ReadOnlyData returns the underlying byte slice. Note that it is undefined
47 // behavior to modify the contents of this slice in any way.
48 ReadOnlyData() []byte
49 // Ref increases the reference counter for this Buffer.
50 Ref()
51 // Free decrements this Buffer's reference counter and frees the underlying

Callers 15

TestBuffer_SplitMethod · 0.95
TestBuffer_SliceMethod · 0.95
compressFunction · 0.65
UnmarshalMethod · 0.65
writeMethod · 0.65
handleNonGRPCDataMethod · 0.65

Implementers 2

buffermem/buffers.go
emptyBuffermem/buffers.go

Calls

no outgoing calls