MCPcopy Index your code
hub / github.com/Shopify/go-lua / dumpFunction

Method dumpFunction

dump.go:131–142  ·  view source on GitHub ↗
(p *prototype)

Source from the content-addressed store, hash-verified

129}
130
131func (d *dumpState) dumpFunction(p *prototype) {
132 d.writeInt(p.lineDefined)
133 d.writeInt(p.lastLineDefined)
134 d.writeByte(byte(p.parameterCount))
135 d.writeBool(p.isVarArg)
136 d.writeByte(byte(p.maxStackSize))
137 d.writeCode(p)
138 d.writeConstants(p)
139 d.writePrototypes(p)
140 d.writeUpvalues(p)
141 d.writeDebug(p)
142}
143
144func (d *dumpState) dumpHeader() {
145 d.err = binary.Write(d.out, d.order, header)

Callers 2

writePrototypesMethod · 0.95
dumpMethod · 0.95

Calls 8

writeIntMethod · 0.95
writeByteMethod · 0.95
writeBoolMethod · 0.95
writeCodeMethod · 0.95
writeConstantsMethod · 0.95
writePrototypesMethod · 0.95
writeUpvaluesMethod · 0.95
writeDebugMethod · 0.95

Tested by

no test coverage detected