Function script::dom::bindings::import::module::jsapi::JS::ReadableStreamUpdateDataAvailableFromSource
source ยท pub unsafe extern "C" fn ReadableStreamUpdateDataAvailableFromSource(
cx: *mut JSContext,
stream: Handle<*mut JSObject>,
availableData: u32,
) -> bool
Expand description
Update the amount of data available at the underlying source of the given |stream|.
Can only be used for streams with an embedding-provided underlying source. The JS engine will use the given value to satisfy read requests for the stream by invoking the writeIntoReadRequestBuffer method.
Asserts that |stream| is a ReadableStream object or an unwrappable wrapper for one.