MemoryRenderSandbox class final

An in-memory RenderSandbox: every file lives in a map of bytes.

Used on the web, where there is no file system — the captured frames, the manifest, the materialized encoder inputs, and the encoded output are all held as bytes and handed to ffmpeg.wasm's virtual file system. Pure Dart, so it also runs in unit tests on the VM.

Implemented types

Constructors

MemoryRenderSandbox()
Creates an empty in-memory sandbox.

Properties

directoryPath String?
The real directory path a process-based encoder runs in, or null for an in-memory sandbox (a process encoder is never selected there).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
names Iterable<String>
The names currently held, in insertion order (for tests and inspection).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create() Future<void>
Prepares the sandbox for writing (creates the directory for a file-backed sandbox; a no-op in memory).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openFrames(String name) CaptureSink
Opens name for appending raw frame bytes.
override
readBytes(String name) Future<Uint8List>
Reads name back as bytes.
override
toString() String
A string representation of this object.
inherited
writeBytes(String name, Uint8List bytes) Future<void>
Writes bytes to name (a materialized encoder input, or an output).
override
writeText(String name, String content) Future<void>
Writes content to name as UTF-8 text (the manifest).
override

Operators

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