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

Function encodeCommand

gapil/executor/encode.go:27–35  ·  view source on GitHub ↗
(cmd api.Cmd, buf []byte)

Source from the content-addressed store, hash-verified

25}
26
27func encodeCommand(cmd api.Cmd, buf []byte) {
28 e, ok := cmd.(Encodable)
29 if !ok {
30 panic(fmt.Errorf("Command '%v' is not encodable", cmd.CmdName()))
31 }
32 if !e.Encode(buf) {
33 panic(fmt.Errorf("Failed to encode command '%v'", cmd.CmdName()))
34 }
35}

Callers 1

ExecuteMethod · 0.85

Calls 2

CmdNameMethod · 0.65
EncodeMethod · 0.65

Tested by

no test coverage detected