1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-03 17:08:35 -05:00
denoland-deno/serde_v8/magic
Bartek Iwańczuk dda0f1c343
refactor(serde_v8): split ZeroCopyBuf into JsBuffer and ToJsBuffer (#19566)
`ZeroCopyBuf` was convenient to use, but sometimes it did hide details
that some copies were necessary in certain cases. Also it made it way to easy
for the caller to pass around and convert into different values. This commit
splits `ZeroCopyBuf` into `JsBuffer` (an array buffer coming from V8) and
`ToJsBuffer` (a Rust buffer that will be converted into a V8 array buffer).

As a result some magical conversions were removed (they were never used)
limiting the API surface and preparing for changes in #19534.
2023-06-22 23:37:56 +02:00
..
any_value.rs refactor(serde_v8): split ZeroCopyBuf into JsBuffer and ToJsBuffer (#19566) 2023-06-22 23:37:56 +02:00
bigint.rs feat(serde_v8): better error output (#18815) 2023-04-27 02:12:39 +02:00
buffer.rs refactor(serde_v8): split ZeroCopyBuf into JsBuffer and ToJsBuffer (#19566) 2023-06-22 23:37:56 +02:00
bytestring.rs feat(serde_v8): better error output (#18815) 2023-04-27 02:12:39 +02:00
detached_buffer.rs feat(serde_v8): better error output (#18815) 2023-04-27 02:12:39 +02:00
external_pointer.rs feat(serde_v8): better error output (#18815) 2023-04-27 02:12:39 +02:00
global.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
mod.rs feat(ext/kv): key-value store (#18232) 2023-03-22 12:13:24 +08:00
rawbytes.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
string_or_buffer.rs refactor(serde_v8): split ZeroCopyBuf into JsBuffer and ToJsBuffer (#19566) 2023-06-22 23:37:56 +02:00
transl8.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
u16string.rs feat(serde_v8): better error output (#18815) 2023-04-27 02:12:39 +02:00
v8slice.rs refactor(serde_v8): don't access backing store twice (#19382) 2023-06-06 08:02:16 -06:00
value.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00