[#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
16
netmap/grpc/types_frostfs.pb.go
generated
16
netmap/grpc/types_frostfs.pb.go
generated
|
@ -2081,7 +2081,9 @@ func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"epoch\":"
|
||||
out.RawString(prefix)
|
||||
out.Uint64(x.Epoch)
|
||||
out.RawByte('"')
|
||||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.Epoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
|
@ -2655,7 +2657,9 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"currentEpoch\":"
|
||||
out.RawString(prefix)
|
||||
out.Uint64(x.CurrentEpoch)
|
||||
out.RawByte('"')
|
||||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.CurrentEpoch, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
|
@ -2667,7 +2671,9 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"magicNumber\":"
|
||||
out.RawString(prefix)
|
||||
out.Uint64(x.MagicNumber)
|
||||
out.RawByte('"')
|
||||
out.Buffer.Buf = strconv.AppendUint(out.Buffer.Buf, x.MagicNumber, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
|
@ -2679,7 +2685,9 @@ func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer) {
|
|||
}
|
||||
const prefix string = "\"msPerBlock\":"
|
||||
out.RawString(prefix)
|
||||
out.Int64(x.MsPerBlock)
|
||||
out.RawByte('"')
|
||||
out.Buffer.Buf = strconv.AppendInt(out.Buffer.Buf, x.MsPerBlock, 10)
|
||||
out.RawByte('"')
|
||||
}
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue