Function script::dom::bindings::import::module::jsapi::ReadableStreamGetMode

source ·
pub unsafe extern "C" fn ReadableStreamGetMode(
    cx: *mut JSContext,
    stream: Handle<*mut JSObject>,
    mode: *mut ReadableStreamMode,
) -> bool
Expand description

Returns the stream’s ReadableStreamMode. If the mode is |Byte| or |ExternalSource|, it’s possible to acquire a BYOB reader for more optimized operations.

Asserts that |stream| is a ReadableStream object or an unwrappable wrapper for one.