OpfsStreamModelSource class final
WebStorageMode.streaming + opfs://<filename> path. Carries the
WebOPFSService and the OPFS filename so each engine can ask for
the form it consumes — MediaPipe wants a
ReadableStreamDefaultReader, @litert-lm/core wants the raw
ReadableStream.
- Inheritance
-
- Object
- WebModelSource
- OpfsStreamModelSource
Constructors
- OpfsStreamModelSource(WebOPFSService opfsService, String filename)
-
const
Properties
- filename → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- opfsService → WebOPFSService
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openReader(
) → Future< JSAny> -
ReadableStreamDefaultReader— used by MediaPipe'sLlmInferenceBaseOptions.modelAssetBuffer. -
openStream(
) → Future< JSAny> -
Raw
ReadableStream— used by@litert-lm/core'sEngine.create({model: <ReadableStream>}). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited