sk_shift() private method

private sk_shift ( IntPtr stack ) : IntPtr
stack IntPtr
return IntPtr
Example #1
0
        /// <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);
            }
        }
Example #2
0
        /// <summary>
        /// Calls sk_shift()
        /// </summary>
        /// <returns></returns>
        public T Shift()
        {
            IntPtr ptr = Native.sk_shift(this.ptr);

            return(CreateInstance(ptr));
        }