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

Method encodeABx

code.go:328–333  ·  view source on GitHub ↗
(op opCode, a, bx int)

Source from the content-addressed store, hash-verified

326}
327
328func (f *function) encodeABx(op opCode, a, bx int) int {
329 f.assert(opMode(op) == iABx || opMode(op) == iAsBx)
330 f.assert(cMode(op) == opArgN)
331 f.assert(a <= maxArgA && bx <= maxArgBx)
332 return f.encode(createABx(op, a, bx))
333}
334
335func (f *function) encodeAsBx(op opCode, a, sbx int) int { return f.encodeABx(op, a, sbx+maxArgSBx) }
336

Callers 3

encodeAsBxMethod · 0.95
EncodeConstantMethod · 0.95
CloseFunctionMethod · 0.80

Calls 5

assertMethod · 0.95
encodeMethod · 0.95
opModeFunction · 0.85
cModeFunction · 0.85
createABxFunction · 0.85

Tested by

no test coverage detected