Skip to content

Commit

Permalink
rpc_util: add a SharedBufferPool function comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hueypark committed Mar 17, 2023
1 parent 3cbb6b5 commit 57b9c67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared_buffer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ import "sync"
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
type SharedBufferPool interface {
// Get returns a buffer with specified length from the pool.
Get(length int) []byte

// Put returns a buffer to the pool.
Put(*[]byte)
}

Expand Down

0 comments on commit 57b9c67

Please sign in to comment.