C# Class OpenSSL.Core.BIO

Encapsulates the BIO_* functions.
Inheritance: OpenSSL.Core.Base
Datei anzeigen Open project: langhuihui/csharprtmp Class Usage Examples

Public Methods

Method Description
BIO ( byte buf ) : System

Calls BIO_new(BIO_s_mem()) and then BIO_write() the buf

BIO ( string str ) : System

Calls BIO_new(BIO_s_mem()) and then BIO_write() the str

File ( string filename, string mode ) : BIO

Factory method that calls BIO_new_file()

GetMessageDigestContext ( ) : OpenSSL.Crypto.MessageDigestContext

Returns the MessageDigestContext if this BIO's type if BIO_f_md()

MemoryBuffer ( ) : BIO

Factory method that calls BIO_new() with BIO_s_mem()

MemoryBuffer ( bool takeOwnership ) : BIO

Calls BIO_new(BIO_s_mem())

MessageDigest ( OpenSSL.Crypto.MessageDigest md ) : BIO

Factory method that calls BIO_new() with BIO_f_md()

Push ( BIO bio ) : void

Calls BIO_push()

ReadBytes ( int count ) : ArraySegment

Calls BIO_read()

ReadString ( ) : string

Calls BIO_gets()

SetClose ( CloseOption opt ) : void

Calls BIO_set_close()

Write ( byte buf ) : void

Calls BIO_write()

Write ( byte buf, int len ) : void

Calls BIO_write()

Write ( string str ) : void

Calls BIO_puts()

Write ( uint value ) : void

Calls BIO_write()

Write ( ushort value ) : void

Calls BIO_write()

Protected Methods

Method Description
OnDispose ( ) : void

Calls BIO_free()

Private Methods

Method Description
BIO ( IntPtr ptr, bool owner ) : System

Method Details

BIO() public method

Calls BIO_new(BIO_s_mem()) and then BIO_write() the buf
public BIO ( byte buf ) : System
buf byte
return System

BIO() public method

Calls BIO_new(BIO_s_mem()) and then BIO_write() the str
public BIO ( string str ) : System
str string
return System

File() public static method

Factory method that calls BIO_new_file()
public static File ( string filename, string mode ) : BIO
filename string
mode string
return BIO

GetMessageDigestContext() public method

Returns the MessageDigestContext if this BIO's type if BIO_f_md()
public GetMessageDigestContext ( ) : OpenSSL.Crypto.MessageDigestContext
return OpenSSL.Crypto.MessageDigestContext

MemoryBuffer() public static method

Factory method that calls BIO_new() with BIO_s_mem()
public static MemoryBuffer ( ) : BIO
return BIO

MemoryBuffer() public static method

Calls BIO_new(BIO_s_mem())
public static MemoryBuffer ( bool takeOwnership ) : BIO
takeOwnership bool
return BIO

MessageDigest() public static method

Factory method that calls BIO_new() with BIO_f_md()
public static MessageDigest ( OpenSSL.Crypto.MessageDigest md ) : BIO
md OpenSSL.Crypto.MessageDigest
return BIO

OnDispose() protected method

Calls BIO_free()
protected OnDispose ( ) : void
return void

Push() public method

Calls BIO_push()
public Push ( BIO bio ) : void
bio BIO
return void

ReadBytes() public method

Calls BIO_read()
public ReadBytes ( int count ) : ArraySegment
count int
return ArraySegment

ReadString() public method

Calls BIO_gets()
public ReadString ( ) : string
return string

SetClose() public method

Calls BIO_set_close()
public SetClose ( CloseOption opt ) : void
opt CloseOption
return void

Write() public method

Calls BIO_write()
public Write ( byte buf ) : void
buf byte
return void

Write() public method

Calls BIO_write()
public Write ( byte buf, int len ) : void
buf byte
len int
return void

Write() public method

Calls BIO_puts()
public Write ( string str ) : void
str string
return void

Write() public method

Calls BIO_write()
public Write ( uint value ) : void
value uint
return void

Write() public method

Calls BIO_write()
public Write ( ushort value ) : void
value ushort
return void