Skip to main content

readable_byte_stream_controller_enqueue_bytes

Function readable_byte_stream_controller_enqueue_bytes 

Source
pub fn readable_byte_stream_controller_enqueue_bytes<'js>(
    ctx: Ctx<'js>,
    controller: ReadableByteStreamControllerClass<'js>,
    buffer: ArrayBuffer<'js>,
) -> Result<()>
Expand description

Public API for enqueuing a Uint8Array (built from the caller-supplied ArrayBuffer) into a byte stream controller from Rust code. Used by byte-source streams created via ReadableStream::from_byte_pull_algorithm.