Documentation ¶
Index ¶
- func GetBytesByContext(context context.Context, size int) *[]byte
- func NewBufferPoolContext(ctx context.Context) context.Context
- func PoolContext(ctx context.Context) *bufferValue
- func RegisterBuffer(poolCtx types.BufferPoolCtx)
- func TransmitBufferPoolContext(dst context.Context, src context.Context)
- type ByteBufferCtx
- type TempBufferCtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBytesByContext ¶
GetBytesByContext returns []byte from byteBufferPool by context
func NewBufferPoolContext ¶
NewBufferPoolContext returns a context with bufferValue
func PoolContext ¶
PoolContext returns bufferValue by context
func RegisterBuffer ¶
func RegisterBuffer(poolCtx types.BufferPoolCtx)
Types ¶
type ByteBufferCtx ¶
type ByteBufferCtx struct {
TempBufferCtx
}
func (ByteBufferCtx) New ¶
func (ctx ByteBufferCtx) New() interface{}
func (ByteBufferCtx) Reset ¶
func (ctx ByteBufferCtx) Reset(i interface{})
type TempBufferCtx ¶
type TempBufferCtx struct {
// contains filtered or unexported fields
}
TempBufferCtx is template for BufferPoolCtx
func (*TempBufferCtx) Index ¶
func (t *TempBufferCtx) Index() int
func (*TempBufferCtx) New ¶
func (t *TempBufferCtx) New() interface{}
func (*TempBufferCtx) Reset ¶
func (t *TempBufferCtx) Reset(x interface{})
Click to show internal directories.
Click to hide internal directories.