From 57b9c67038c51d0e9df37d9932107e99ae28628c Mon Sep 17 00:00:00 2001 From: Jaewan Park Date: Sat, 18 Mar 2023 07:15:08 +0900 Subject: [PATCH] rpc_util: add a SharedBufferPool function comments --- shared_buffer_pool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared_buffer_pool.go b/shared_buffer_pool.go index 86727385c7e1..873d91b6da96 100644 --- a/shared_buffer_pool.go +++ b/shared_buffer_pool.go @@ -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) }