WASIComponentReadableStream<T> class
final
Readable endpoint for WASIComponentStream.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasQueuedValues → bool
-
Whether at least one value is currently queued for reading.
no setter
- isCancelled → bool
-
Whether reads have been cancelled.
no setter
- isDropped → bool
-
Whether this endpoint has been dropped.
no setter
- isEndOfStream → bool
-
Whether the writable end is closed and no buffered values remain.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → void - Cancels future reads, discards queued values, and consumes this endpoint.
-
cancelPendingCopy(
) → void - Cancels the currently pending read copy without closing this endpoint.
-
cancelRequestedCopy(
) → void - Cancels the underlying pending read after cancellation was requested.
-
dispose(
) → void - Force-releases this host-owned endpoint during resource teardown.
-
drop(
) → void - Drops this endpoint.
-
finishDeferredCopy(
{required bool dropped}) → void - Applies the result when a deferred copy event is delivered.
-
forwardTo(
WASIComponentWritableStream< T> writable, int maxElements, {int chunkSize = 1}) → Future<int> -
Forwards up to
maxElementsvalues intowritable. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
int maxElements) → List< T> -
Reads up to
maxElementsqueued values. -
readForCopy(
int maxElements) → List< T> - Reads values as one canonical stream copy.
-
readWhenAvailable(
int maxElements) → Future< List< T> > - Returns a Dart future that completes when values or stream closure arrive.
-
readWhenAvailableForCopy(
int maxElements, {bool asynchronous = true, bool deferCompletion = false}) → Future< List< T> > - Waits for one canonical stream copy.
-
requestCopyCancellation(
) → void - Marks an asynchronous read copy as being cancelled.
-
requireCopyIdle(
) → void - Validates that a new canonical copy may start.
-
requireDroppable(
) → void - Validates that this endpoint may be dropped or transferred.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited