We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44c200 commit 6b5000fCopy full SHA for 6b5000f
shared_buffer_pool.go
@@ -21,12 +21,22 @@ package grpc
21
import "sync"
22
23
// SharedBufferPool is a pool of buffers that can be shared.
24
+//
25
+// # Experimental
26
27
+// Notice: This API is EXPERIMENTAL and may be changed or removed in a
28
+// later release.
29
type SharedBufferPool interface {
30
Get(length int) []byte
31
Put(*[]byte)
32
}
33
34
// NewSimpleSharedBufferPool creates a new SimpleSharedBufferPool.
35
36
37
38
39
40
func NewSimpleSharedBufferPool() SharedBufferPool {
41
return &simpleSharedBufferPool{
42
Pool: sync.Pool{
0 commit comments