Commit 39eb3b11 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 51dcbce3
......@@ -1015,7 +1015,9 @@ overflow:
func (p *AnswerLockedTransactions) NEOEncodedLen() int {
var size uint32
{
size += 0
l := uint32(len(p.TidDict))
_ = l
size += 4
for key, v := range p.TidDict {
_ = key
_ = v
......@@ -2812,7 +2814,9 @@ overflow:
func (p *AnswerObjectUndoSerial) NEOEncodedLen() int {
var size uint32
{
size += 0
l := uint32(len(p.ObjectTIDDict))
_ = l
size += 4
for key, v := range p.ObjectTIDDict {
_ = key
_ = v
......@@ -3014,7 +3018,9 @@ overflow:
func (p *CheckReplicas) NEOEncodedLen() int {
var size uint32
{
size += 0
l := uint32(len(p.PartitionDict))
_ = l
size += 4
for key, v := range p.PartitionDict {
_ = key
_ = v
......
......@@ -365,11 +365,12 @@ func (d *decoder) genSlice(assignto string, typ *types.Slice, obj types.Object)
// [len](key, value)
func (e *encoder) genMap(path string, typ *types.Map, obj types.Object) {
e.emit("{")
if !e.SizeOnly {
e.emit("l := uint32(len(%s))", path)
e.genBasic("l", types.Typ[types.Uint32], nil, nil)
if !e.SizeOnly {
e.emit("data = data[%v:]", e.n)
} else {
e.emit("_ = l") // FIXME remove
e.emit("size += %v", e.n)
}
e.n = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment