Skip to content

Commit 57b9c67

Browse files
committed
rpc_util: add a SharedBufferPool function comments
1 parent 3cbb6b5 commit 57b9c67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shared_buffer_pool.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ import "sync"
2929
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
3030
// later release.
3131
type SharedBufferPool interface {
32+
// Get returns a buffer with specified length from the pool.
3233
Get(length int) []byte
34+
35+
// Put returns a buffer to the pool.
3336
Put(*[]byte)
3437
}
3538

0 commit comments

Comments
 (0)