1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-09 09:35:03 +09:00

Update to marshal append

This commit is contained in:
mcrakhman 2024-07-15 22:00:18 +02:00
parent bdb7cf3aca
commit 4c42f499d1
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
18 changed files with 1640 additions and 39 deletions

View file

@ -76,6 +76,14 @@ func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return b[:n], nil
}
}
func (m *Key) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
b = b[:newLen]
_, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b, nil
}
func (m *Key) XXX_Merge(src proto.Message) {
xxx_messageInfo_Key.Merge(m, src)
}