sk_push() private method

private sk_push ( IntPtr stack, IntPtr data ) : int
stack IntPtr
data IntPtr
return int
Example #1
0
 /// <summary>
 /// Calls sk_push()
 /// </summary>
 /// <param name="item"></param>
 public void Add(T item)
 {
     // Add the item to the stack
     if (Native.sk_push(this.ptr, item.Handle) <= 0)
     {
         throw new OpenSslException();
     }
     // Addref the native pointer
     item.AddRef();
 }