aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/FFI.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-0/+1
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-11-08Stack allocate arguments to make it actually threadsafeGravatar Jarred Sumner 1-2/+0
2022-11-02[bun:ffi] Implement `JSCallback` so C can call into JSGravatar Jarred Sumner 1-12/+19
2022-09-09Fix failing tests after ptr changeGravatar Jarred Sumner 1-1/+9
2022-09-09[breaking][bun:ffi] Change the pointer representation to be a 52-bit integerGravatar Jarred Sumner 1-9/+18
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`
2022-09-06workaround test failureGravatar Jarred Sumner 1-8/+2
2022-08-28support pass null as NULL ptr (#1160)Gravatar Zilin Zhu 1-0/+6
2022-08-28[bun:ffi] Fix crash with uint64_tGravatar Jarred Sumner 1-4/+4
2022-07-31Fix: move bun, Webkit and zig urls from Jarred-Sumner to oven-sh. (#944)Gravatar Oran Simhony 1-1/+1
* Fix: move bun, Webkit and zig urls from Jarred-Sumner to oven-sh. * Fix: changed urls from types.d.ts to base bun-types repo.
2022-07-10Update GitHub URL to match new repo URL (#547)Gravatar Aurora Luna Takemi 1-1/+1
* Update repo URLs * GitHub URL update * Revert accidental URL changes
2022-07-05Fix bug in ffiGravatar Jarred Sumner 1-1/+1
2022-06-26wip ReadableStream for HTTP(s) ServerGravatar Jarred Sumner 1-1/+5
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+252