/// <summary> /// Clear all items from the stack /// </summary> public void Clear() { IntPtr value_ptr = Native.sk_shift(this.ptr); while (value_ptr != IntPtr.Zero) { T item = CreateInstance(value_ptr); item.Dispose(); value_ptr = Native.sk_shift(this.ptr); } }
/// <summary> /// Calls sk_shift() /// </summary> /// <returns></returns> public T Shift() { IntPtr ptr = Native.sk_shift(this.ptr); return(CreateInstance(ptr)); }