1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/ext/node/ops/crypto
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
..
cipher.rs refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00
dh.rs feat(node/crypto): Diffie Hellman Support (#18943) 2023-05-15 19:41:53 +02:00
digest.rs refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00
mod.rs refactor(serde_v8): split ZeroCopyBuf into JsBuffer and ToJsBuffer (#19566) 2023-06-22 23:37:56 +02:00
primes.rs fix(ext/node): prime generation (#18861) 2023-04-27 19:40:59 +05:30
x509.rs refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00