Bio class
Wrapper around OpenSSL BIO (Basic Input/Output). Used to bridge Dart Uint8List/String and OpenSSL's C IO.
Constructors
- Bio.empty(OpenSslContext context)
-
factory
- Bio.fromBytes(OpenSslContext context, Uint8List bytes)
-
Creates a BIO from a memory buffer (Uint8List).
factory
- Bio.fromString(OpenSslContext context, String text)
-
Creates a BIO from a String (utf8).
factory
Properties
Methods
-
attachFinalizer(
NativeFinalizer finalizer, Pointer< Void> token, {int? externalSize}) → void -
Attaches this Dart object to the native pointer so that
finalizercallsfreeFuncon_ptrwhen this object is GC'd.inherited -
dispose(
) → void -
Manually dispose the native object.
Note: The Finalizer must support detachment if we want to do this safely,
but NativeFinalizer automatically handles detached objects if we passed
detach: this.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List - Reads the entire content of the BIO into Uint8List.
-
toString(
) → String -
A string representation of this object.
inherited
-
toStringData(
) → String - Reads the entire content of the BIO into a String.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited