OpenSSL.Core.Native.BIO_puts C# (CSharp) Method

BIO_puts() private method

private BIO_puts ( IntPtr b, byte buf ) : int
b System.IntPtr
buf byte
return int
        public static extern int BIO_puts(IntPtr b, byte[] buf);

Usage Example

Example #1
0
 /// <summary>
 /// Calls BIO_puts()
 /// </summary>
 /// <param name="str"></param>
 public void Write(string str)
 {
     byte[] buf = Encoding.ASCII.GetBytes(str);
     if (Native.BIO_puts(this.ptr, buf) != buf.Length)
     {
         throw new OpenSslException();
     }
 }
Native