Files
mps/buf.go
telanflow 1b6a370f99 init
2020-08-09 02:38:46 +08:00

10 lines
182 B
Go

package mps
type bufferPool struct {
get func() []byte
put func([]byte)
}
func (bp bufferPool) Get() []byte { return bp.get() }
func (bp bufferPool) Put(v []byte) { bp.put(v) }