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

Function newBuffer

mem/buffer_slice_test.go:38–40  ·  view source on GitHub ↗
(data []byte, pool mem.BufferPool)

Source from the content-addressed store, hash-verified

36)
37
38func newBuffer(data []byte, pool mem.BufferPool) mem.Buffer {
39 return mem.NewBuffer(&data, pool)
40}
41
42func (s) TestBufferSlice_Len(t *testing.T) {
43 tests := []struct {

Callers 4

TestBufferSlice_LenMethod · 0.70
TestBufferSlice_RefMethod · 0.70

Calls 1

NewBufferFunction · 0.92

Tested by

no test coverage detected