You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, I cannot Marshal two message into one fixed size buffer unless re-allocated buffer.
func (m*MessageHead) XXX_Marshal(b []byte, deterministicbool) ([]byte, error) {
ifdeterministic {
returnxxx_messageInfo_MessageHead.Marshal(b, m, deterministic)
} else {
b=b[:cap(b)] // Notice! MarshalToSizedBuffer will fill data into b from the endn, err:=m.MarshalToSizedBuffer(b)
iferr!=nil {
returnnil, err
}
returnb[:n], nil
}
}
The text was updated successfully, but these errors were encountered:
bestans
changed the title
why MarshalToSizedBuffer is in reverse order when use the latest gogofaster
Why MarshalToSizedBuffer is in reverse order when use the latest gogofaster
Dec 7, 2021
Now, I cannot Marshal two message into one fixed size buffer unless re-allocated buffer.
The text was updated successfully, but these errors were encountered: