Refactor bufpool methods
This commit is contained in:
@@ -61,7 +61,7 @@ type (
|
||||
)
|
||||
|
||||
func (p *SUBMIT_SM) Encode() (*[]byte, error) {
|
||||
buf := ByteBufferPool.GetBuffer(uint(p.Size()))
|
||||
buf := ByteBufferPool.Get(uint(p.Size()))
|
||||
err := p.EncodeInto(buf)
|
||||
return buf, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user