BIO_write() private method

private BIO_write ( IntPtr b, byte buf, int len ) : int
b System.IntPtr
buf byte
len int
return int
Exemplo n.º 1
0
 /// <summary>
 /// Calls BIO_write()
 /// </summary>
 /// <param name="buf"></param>
 /// <param name="len"></param>
 public void Write(byte[] buf, int len)
 {
     if (Native.BIO_write(ptr, buf, len) != len)
     {
         throw new OpenSslException();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Calls BIO_write()
 /// </summary>
 /// <param name="buf"></param>
 public void Write(byte[] buf)
 {
     if (Native.BIO_write(ptr, buf, buf.Length) != buf.Length)
     {
         throw new OpenSslException();
     }
 }