Update submitsm encode
This commit is contained in:
@@ -60,9 +60,9 @@ type (
|
|||||||
SUBMIT_MULTI_RESP struct{}
|
SUBMIT_MULTI_RESP struct{}
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *SUBMIT_SM) Encode() ([]byte, error) {
|
func (p *SUBMIT_SM) Encode() (*[]byte, error) {
|
||||||
buf := make([]byte, p.Size())
|
buf := ByteBufferPool.GetBuffer(uint(p.Size()))
|
||||||
err := p.EncodeInto(&buf)
|
err := p.EncodeInto(buf)
|
||||||
return buf, err
|
return buf, err
|
||||||
}
|
}
|
||||||
func (p *SUBMIT_SM) EncodeInto(buf *[]byte) error {
|
func (p *SUBMIT_SM) EncodeInto(buf *[]byte) error {
|
||||||
|
Reference in New Issue
Block a user