MCPcopy Create free account
hub / github.com/google/gapid / MutateAndWrite

Method MutateAndWrite

gapis/replay/batch.go:387–395  ·  view source on GitHub ↗
(ctx context.Context, id api.CmdID, cmd api.Cmd)

Source from the content-addressed store, hash-verified

385}
386
387func (w *adapter) MutateAndWrite(ctx context.Context, id api.CmdID, cmd api.Cmd) {
388 w.builder.BeginCommand(uint64(id), cmd.Thread())
389 if err := cmd.Mutate(ctx, id, w.state, w.builder, nil); err == nil {
390 w.builder.CommitCommand()
391 } else {
392 w.builder.RevertCommand(err)
393 log.W(ctx, "Failed to write command %v %v for replay: %v", id, cmd, err)
394 }
395}

Callers

nothing calls this directly

Calls 6

BeginCommandMethod · 0.80
CommitCommandMethod · 0.80
RevertCommandMethod · 0.80
ThreadMethod · 0.65
MutateMethod · 0.65
WMethod · 0.45

Tested by

no test coverage detected