Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grpc/grpc-go
/ newBufferSlice
Function
newBufferSlice
internal/transport/transport_test.go:80–82 ·
view source on GitHub ↗
(b []byte)
Source
from the content-addressed store, hash-verified
78
}
79
80
func
newBufferSlice(b []byte) mem.BufferSlice {
81
return
mem.BufferSlice{mem.SliceBuffer(b)}
82
}
83
84
func
(s *Stream) readTo(p []byte) (int, error) {
85
data, err := s.read(len(p))
Callers
15
handleStream
Method · 0.85
handleStreamPingPong
Method · 0.85
handleStreamMisbehave
Method · 0.85
handleStreamInvalidContentTypeWithMultipleFrame
Method · 0.85
handleStreamDelayRead
Method · 0.85
TestClientSendAndReceive
Method · 0.85
performOneRPC
Function · 0.85
TestLargeMessage
Method · 0.85
TestLargeMessageWithDelayRead
Method · 0.85
TestGracefulClose
Method · 0.85
TestLargeMessageSuspension
Method · 0.85
TestServerContextCanceledOnClosedConnection
Method · 0.85
Calls
1
SliceBuffer
TypeAlias · 0.92
Tested by
no test coverage detected