diff options
author | 2022-05-03 02:28:26 -0700 | |
---|---|---|
committer | 2022-05-03 02:28:26 -0700 | |
commit | f0fdda567868124f18e8a54651a7e2a12cd06d4d (patch) | |
tree | e61610ae514d40a0851f2e925f0ab76fe41cd944 | |
parent | bb2d67e3610c5e4ca4a1dd7274573e4f9dd77083 (diff) | |
download | bun-f0fdda567868124f18e8a54651a7e2a12cd06d4d.tar.gz bun-f0fdda567868124f18e8a54651a7e2a12cd06d4d.tar.zst bun-f0fdda567868124f18e8a54651a7e2a12cd06d4d.zip |
Update README.md
Diffstat (limited to '')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1810,7 +1810,7 @@ const { } = dlopen(myLibraryPath, { encode_png: { // FFIType's can be specified as strings too - args: ["ptr", "uint32_t"], + args: ["ptr", "u32", "u32"], returns: FFIType.ptr, }, }); @@ -1823,7 +1823,8 @@ const out = encode_png( // pixels will be passed as a pointer pixels, - pixels.byteLength + 128, + 128 ); ``` |