import { dlopen, suffix } from "bun:ffi"; const { symbols: { add }, } = dlopen(`./libadd.${suffix}`, { add: { args: ["i32", "i32"], returns: "i32", }, }); console.log(add(1, 2)); 'https://git.anshulg.com/ansg191/bun/atom/packages/bun-ecosystem?h=ciro/queue-response-experiment' type='application/atom+xml'/>
![]() |
index : bun | |
Unnamed repository; edit this file 'description' to name the repository. |
aboutsummaryrefslogtreecommitdiff |