Xmlb.Stack¶
Fields¶
None
Methods¶
|
|
|
|
|
Details¶
- class Xmlb.Stack¶
- pop()¶
- Raises:
- Returns:
True
if popping succeeded,False
if the stack was empty already- opcode_out:
return location for the popped
Xmlb.Opcode
- Return type:
(
bool
, opcode_out:Xmlb.Opcode
)
Pops an opcode off the stack.
New in version 0.2.0.
- push()¶
- Raises:
- Returns:
True
if a new empty opcode was returned, orFalse
if the stack has reached its maximum size- opcode_out:
return location for the new
Xmlb.Opcode
- Return type:
(
bool
, opcode_out:Xmlb.Opcode
orNone
)
Pushes a new empty opcode onto the end of the stack. A pointer to the opcode is returned in opcode_out so that the caller can initialise it. This must be done before the stack is next used as, for performance reasons, the newly pushed opcode is not zero-initialised.
New in version 0.2.0.