NativeScope class final

Owns temporary native allocations for one task creation or invocation.

Constructors

NativeScope({String? task})
Creates an allocation scope.

Properties

allocator → Allocator
Allocator used by generated task-option factories in this scope.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
task → String?
Task name included in converted native errors.
final

Methods

baseOptions(BaseOptions options) → Pointer<MpBaseOptions>
Allocates native base options backed by this scope.
check(MpStatus status, Pointer<Pointer<Char>> errorOutput) → void
Converts a native status and owned error message to MpException.
classifierOptions(ClassifierOptions? options) → Pointer<MpClassifierOptions>
Allocates native classifier options backed by this scope.
embedderOptions(EmbedderOptions options) → Pointer<MpEmbedderOptions>
Allocates native embedding options backed by this scope.
errorOutput() → Pointer<Pointer<Char>>
Allocates the error output expected by MediaPipe C functions.
image(MpImage image) → MpImagePtr
Copies image into an owned MediaPipe native image.
imageProcessingOptions(ImageProcessingOptions? options) → Pointer<MpImageProcessingOptions>
Allocates native image-processing options backed by this scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases every temporary allocation in this scope.
string(String? value) → Pointer<Char>
Converts a Dart string to a scoped UTF-8 C string.
strings(List<String> values) → Pointer<Pointer<Char>>
Allocates a scoped C string array.
toString() → String
A string representation of this object.
inherited

Operators

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