mirror of
https://github.com/telanflow/mps.git
synced 2025-09-26 20:41:25 +08:00
10 lines
182 B
Go
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) }
|