From 0e05124fa8b99e403da71f699481bf4096fa6997 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 16 Apr 2024 08:18:47 +0200 Subject: prog: include number of calls into exec encoding Prepend total number of calls to the exec encoding. This will allow pkg/ipc to better parse executor response without full parsing of the encoded program. --- prog/encodingexec.go | 1 + 1 file changed, 1 insertion(+) (limited to 'prog/encodingexec.go') diff --git a/prog/encodingexec.go b/prog/encodingexec.go index a51aa54d7..40cfc9592 100644 --- a/prog/encodingexec.go +++ b/prog/encodingexec.go @@ -75,6 +75,7 @@ func (p *Prog) SerializeForExec() ([]byte, error) { buf: make([]byte, 0, 4<<10), args: make(map[Arg]argInfo), } + w.write(uint64(len(p.Calls))) for _, c := range p.Calls { w.csumMap, w.csumUses = calcChecksumsCall(c) w.serializeCall(c) -- cgit mrf-deployment