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

Method encodeExtraArg

code.go:337–340  ·  view source on GitHub ↗
(a int)

Source from the content-addressed store, hash-verified

335func (f *function) encodeAsBx(op opCode, a, sbx int) int { return f.encodeABx(op, a, sbx+maxArgSBx) }
336
337func (f *function) encodeExtraArg(a int) int {
338 f.assert(a <= maxArgAx)
339 return f.encode(createAx(opExtraArg, a))
340}
341
342func (f *function) EncodeConstant(r, constant int) int {
343 if constant <= maxArgBx {

Callers 2

EncodeConstantMethod · 0.95
setListMethod · 0.95

Calls 3

assertMethod · 0.95
encodeMethod · 0.95
createAxFunction · 0.85

Tested by

no test coverage detected