forked from TrueCloudLab/frostfs-api-go
[#120] protogen: Marshal 64-bit integers as strings
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
d94b9c6d0d
commit
b06dad731c
10 changed files with 92 additions and 30 deletions
8
object/grpc/service_frostfs.pb.go
generated
8
object/grpc/service_frostfs.pb.go
generated
|
@ -5612,7 +5612,9 @@ func (x *Range) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"offset\":"
|
||||
out.RawString(prefix)
|
||||
out.Uint64(x.Offset)
|
||||
out.RawByte('"')
|
||||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Offset, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
|
@ -5624,7 +5626,9 @@ func (x *Range) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"length\":"
|
||||
out.RawString(prefix)
|
||||
out.Uint64(x.Length)
|
||||
out.RawByte('"')
|
||||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Length, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue