// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://streams.spec.whatwg.org/#readablestreambyobrequest
[
Exposed=(Window,Worker,Worklet)
] interface ReadableStreamBYOBRequest {
readonly attribute ArrayBufferView? view;
[CallWith=ScriptState, RaisesException] void respond([EnforceRange] unsigned long long bytesWritten);
[CallWith=ScriptState, RaisesException] void respondWithNewView(ArrayBufferView view);
};