mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +00:00
LibWeb: Respect subarrays in TextEncoder::encode_into
This is the method that Figma uses to write strings into Wasm memory, using subarrays to select a particular Wasm memory address to write to.
This commit is contained in:
parent
513231216a
commit
3ab93667f5
Notes:
github-actions[bot]
2025-01-21 20:38:39 +00:00
Author: https://github.com/Lubrsi
Commit: 3ab93667f5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3239
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kalenikaliaksandr
3 changed files with 10 additions and 10 deletions
|
@ -27,6 +27,7 @@ public:
|
|||
virtual ~BufferableObjectBase() override = default;
|
||||
|
||||
u32 byte_length() const;
|
||||
u32 byte_offset() const;
|
||||
u32 element_size() const;
|
||||
|
||||
GC::Ref<JS::Object> raw_object();
|
||||
|
@ -69,7 +70,6 @@ public:
|
|||
using BufferableObjectBase::is_data_view;
|
||||
using BufferableObjectBase::is_typed_array_base;
|
||||
|
||||
u32 byte_offset() const;
|
||||
void write(ReadonlyBytes, u32 starting_offset = 0);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue