Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
38
func
newBuffer(data []byte, pool mem.BufferPool) mem.Buffer {
39
return
mem.NewBuffer(&data, pool)
40
}
41
42
func
(s) TestBufferSlice_Len(t *testing.T) {
43
tests := []
struct
{
Callers
4
TestBufferSlice_Len
Method · 0.70
TestBufferSlice_Ref
Method · 0.70
TestBufferSlice_MaterializeToBuffer
Method · 0.70
TestBufferSlice_Reader
Method · 0.70
Calls
1
NewBuffer
Function · 0.92
Tested by
no test coverage detected