Refactor bufpool methods

This commit is contained in:
PhatPhuckDave
2024-07-23 14:55:48 +02:00
parent a9827f10ce
commit 2759185dbb
4 changed files with 15 additions and 15 deletions

View File

@@ -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
}