Lines Matching refs:depth
86 * Get the current stack depth (number of elements).
117 * Look at the value at depth 'depth' (0 is top of stack). The
120 internal TValue Peek(int depth)
122 return stackBuf[stackPtr - depth];
126 * Rotate the stack at depth 'depth': the value at that depth
129 internal void Rot(int depth)
131 TValue v = stackBuf[stackPtr - depth];
132 Array.Copy(stackBuf, stackPtr - (depth - 1),
133 stackBuf, stackPtr - depth, depth);
138 * Inverse-rotate the stack at depth 'depth': the value at the
139 * top of stack is moved to that depth.
141 internal void NRot(int depth)
144 Array.Copy(stackBuf, stackPtr - depth,
145 stackBuf, stackPtr - (depth - 1), depth);
146 stackBuf[stackPtr - depth] = v;