Bio class

Wrapper around OpenSSL BIO (Basic Input/Output). Used to bridge Dart Uint8List/String and OpenSSL's C IO.

Inheritance

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

handle → Pointer<BIO>
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isNull → bool
Returns true if the underlying pointer is null.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachFinalizer(NativeFinalizer finalizer, Pointer<Void> token, {int? externalSize}) → void
Attaches this Dart object to the native pointer so that finalizer calls freeFunc on _ptr when 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