Function Stack.canPush
Checks if the provided data can be pushed to the stack.
bool canPush
(
const(ubyte)[] data
) pure nothrow @nogc @safe const;
Parameters
Name | Description |
---|---|
data | the data to check if it fits onto the stack |
Returns
true if data is within StackMaxItemSize
limit and adding it
to the stack does not exceed the StackMaxTotalSize
stack size.