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

Method mgEncode

gapil/compiler/plugins/encoder/encoder.go:119–129  ·  view source on GitHub ↗

mgEncode returns the mangling function for an encode method on the given class.

(mgClass *mangling.Class)

Source from the content-addressed store, hash-verified

117// mgEncode returns the mangling function for an encode method on the given
118// class.
119func (e *encoder) mgEncode(mgClass *mangling.Class) *mangling.Function {
120 return &mangling.Function{
121 Name: "encode",
122 Parent: mgClass,
123 Parameters: []mangling.Type{
124 mangling.Pointer{To: mangling.Void},
125 mangling.Bool,
126 },
127 Const: true,
128 }
129}
130
131// buildEncoderFuncs generates the encode functions for all the API classes,
132// command parameters, command calls and state.

Callers 3

buildStateEncodeFuncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected