forked from TrueCloudLab/frostfs-api-go
[#45] api-go: Add PutSingle response wrappers
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
2cb57a8835
commit
d5b55d0926
7 changed files with 124 additions and 0 deletions
|
@ -1098,3 +1098,23 @@ func (r *PutSingleRequestBody) StableSize() int {
|
|||
func (r *PutSingleRequestBody) Unmarshal(data []byte) error {
|
||||
return message.Unmarshal(r, data, new(object.PutSingleRequest_Body))
|
||||
}
|
||||
|
||||
func (r *PutSingleResponseBody) StableMarshal(buf []byte) []byte {
|
||||
if r == nil {
|
||||
return []byte{}
|
||||
}
|
||||
|
||||
if buf == nil {
|
||||
buf = make([]byte, r.StableSize())
|
||||
}
|
||||
|
||||
return buf
|
||||
}
|
||||
|
||||
func (r *PutSingleResponseBody) StableSize() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (r *PutSingleResponseBody) Unmarshal(data []byte) error {
|
||||
return message.Unmarshal(r, data, new(object.PutSingleResponse_Body))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue