aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/headers-cpp.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-09 03:12:03 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-09 03:12:03 -0700
commite9c456ff5cf53d6f57a619db27ed0335c61041eb (patch)
tree000ae2b52bd6de43ea9657ab91d02f669f19aad8 /src/bun.js/bindings/headers-cpp.h
parentbcbe1b410a32cbed72d671ca28e937e14dad3499 (diff)
downloadbun-e9c456ff5cf53d6f57a619db27ed0335c61041eb.tar.gz
bun-e9c456ff5cf53d6f57a619db27ed0335c61041eb.tar.zst
bun-e9c456ff5cf53d6f57a619db27ed0335c61041eb.zip
[breaking][bun:ffi] Change the pointer representation to be a 52-bit integer
Storing the pointer this way enables DOMJIT to be used with a new API in `bun:ffi` that lets you efficiently read values from a pointer without creating a new `DataView` ```js import {read} from 'bun:ffi'; const myPtr = myFunctionThatReturnsAPtr(); // new: const value = read.u32(myPtr, 0); // old: const view = new DataView(toArrayBuffer(myPtr)); const otherValue = view.getUint32(0, true); ``` cc @bwasti this might be a breaking change for that call to `napi_add_finalizer`
Diffstat (limited to 'src/bun.js/bindings/headers-cpp.h')
-rw-r--r--src/bun.js/bindings/headers-cpp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/headers-cpp.h b/src/bun.js/bindings/headers-cpp.h
index fa856aeb1..b956eeb97 100644
--- a/src/bun.js/bindings/headers-cpp.h
+++ b/src/bun.js/bindings/headers-cpp.h
@@ -1,4 +1,4 @@
-//-- AUTOGENERATED FILE -- 1662704581
+//-- AUTOGENERATED FILE -- 1662716176
// clang-format off
#pragma once