LibWeb: Add AO CanCopyDataBlockBytes()

This commit is contained in:
Kenneth Myhra 2024-12-01 21:36:06 +01:00 committed by Tim Flynn
commit 5a9f602fef
Notes: github-actions[bot] 2024-12-05 18:21:38 +00:00
2 changed files with 33 additions and 0 deletions

View file

@ -188,6 +188,7 @@ void transform_stream_set_up(TransformStream&, GC::Ref<TransformAlgorithm>, GC::
void transform_stream_unblock_write(TransformStream&);
bool is_non_negative_number(JS::Value);
bool can_copy_data_block_bytes_buffer(JS::ArrayBuffer const& to_buffer, u64 to_index, JS::ArrayBuffer const& from_buffer, u64 from_index, u64 count);
bool can_transfer_array_buffer(JS::ArrayBuffer const& array_buffer);
WebIDL::ExceptionOr<JS::Value> clone_as_uint8_array(JS::Realm&, WebIDL::ArrayBufferView&);
WebIDL::ExceptionOr<JS::Value> structured_clone(JS::Realm&, JS::Value value);