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

Function newEmptyBuf

mem/buffers_test.go:479–482  ·  view source on GitHub ↗
([]byte)

Source from the content-addressed store, hash-verified

477}
478
479func newEmptyBuf([]byte) mem.Buffer {
480 var bs mem.BufferSlice
481 return bs.MaterializeToBuffer(mem.NopBufferPool{})
482}
483
484func checkForPanic(t *testing.T, wantErr string) {
485 t.Helper()

Callers

nothing calls this directly

Calls 1

MaterializeToBufferMethod · 0.95

Tested by

no test coverage detected