Update submitsm encode

This commit is contained in:
PhatPhuckDave
2024-07-22 23:14:05 +02:00
parent 4ea320c784
commit f00dcafac4

View File

@@ -60,9 +60,9 @@ type (
SUBMIT_MULTI_RESP struct{}
)
func (p *SUBMIT_SM) Encode() ([]byte, error) {
buf := make([]byte, p.Size())
err := p.EncodeInto(&buf)
func (p *SUBMIT_SM) Encode() (*[]byte, error) {
buf := ByteBufferPool.GetBuffer(uint(p.Size()))
err := p.EncodeInto(buf)
return buf, err
}
func (p *SUBMIT_SM) EncodeInto(buf *[]byte) error {