[#104] object: Add getters for PatchRequestBodyPatch

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-08-13 18:50:51 +03:00
parent 47a48969b0
commit d112a28d38
3 changed files with 22 additions and 6 deletions

View file

@ -1335,8 +1335,8 @@ func (r *PatchRequestBodyPatch) StableMarshal(buf []byte) []byte {
}
var offset int
offset += proto.NestedStructureMarshal(patchRequestBodyPatchRangeField, buf[offset:], r.Range)
proto.BytesMarshal(patchRequestBodyPatchChunkField, buf[offset:], r.Chunk)
offset += proto.NestedStructureMarshal(patchRequestBodyPatchRangeField, buf[offset:], r.GetRange())
proto.BytesMarshal(patchRequestBodyPatchChunkField, buf[offset:], r.GetChunk())
return buf
}
@ -1347,8 +1347,8 @@ func (r *PatchRequestBodyPatch) StableSize() int {
}
var size int
size += proto.NestedStructureSize(patchRequestBodyPatchRangeField, r.Range)
size += proto.BytesSize(patchRequestBodyPatchChunkField, r.Chunk)
size += proto.NestedStructureSize(patchRequestBodyPatchRangeField, r.GetRange())
size += proto.BytesSize(patchRequestBodyPatchChunkField, r.GetChunk())
return size
}