mgEncode returns the mangling function for an encode method on the given class.
(mgClass *mangling.Class)
| 117 | // mgEncode returns the mangling function for an encode method on the given |
| 118 | // class. |
| 119 | func (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. |
no outgoing calls
no test coverage detected