LazyContent
Summary
A streaming interface for blob/file content.
Signature
interface LazyContent {
byteLength: number;
stream(start: number, end: number): ReadableStream<Uint8Array<ArrayBuffer>>;
}
Properties
byteLength
The total length of the content.
Methods
stream(start: number, end: number): ReadableStream<Uint8Array>
Returns a stream that can be used to read the content. When given, the start index is
inclusive indicating the index of the first byte to read. The end index is exclusive
indicating the index of the first byte not to read.
start
The start index (inclusive)
end
The end index (exclusive)