SslObject<T extends NativeType> class abstract

Base class for all OpenSSL objects that hold a native pointer and require automatic memory management via NativeFinalizer.

Implemented types
Implementers

Constructors

SslObject(Pointer<T> _ptr)

Properties

handle → Pointer<T>
no setter
hashCode → int
The hash code for this object.
no setterinherited
isNull → bool
Returns true if the underlying pointer is null.
no setter
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.
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

checkCode(OpenSslFfi lib, int result, {String msg = 'Operation failed'}) → void
Helper to check OpenSSL result codes. Standard OpenSSL convention: 1 is success, 0 is failure (e.g. signature verify), <0 is error.