mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:42:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			710 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			710 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Matthew Olsson <mattco@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Streams/ReadableByteStreamController.h>
 | |
| #include <LibWeb/Streams/ReadableStreamBYOBRequest.h>
 | |
| 
 | |
| namespace Web::Streams {
 | |
| 
 | |
| // https://streams.spec.whatwg.org/#rs-byob-request-view
 | |
| JS::GCPtr<JS::TypedArrayBase> ReadableStreamBYOBRequest::view()
 | |
| {
 | |
|     // 1. Return this.[[view]].
 | |
|     return m_view;
 | |
| }
 | |
| 
 | |
| ReadableStreamBYOBRequest::ReadableStreamBYOBRequest(JS::Realm& realm)
 | |
|     : Bindings::PlatformObject(realm)
 | |
| {
 | |
| }
 | |
| 
 | |
| void ReadableStreamBYOBRequest::visit_edges(Cell::Visitor& visitor)
 | |
| {
 | |
|     Base::visit_edges(visitor);
 | |
|     visitor.visit(m_controller);
 | |
|     visitor.visit(m_view);
 | |
| }
 | |
| 
 | |
| }
 | 
