aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-03 02:28:26 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-03 02:28:26 -0700
commitf0fdda567868124f18e8a54651a7e2a12cd06d4d (patch)
treee61610ae514d40a0851f2e925f0ab76fe41cd944
parentbb2d67e3610c5e4ca4a1dd7274573e4f9dd77083 (diff)
downloadbun-f0fdda567868124f18e8a54651a7e2a12cd06d4d.tar.gz
bun-f0fdda567868124f18e8a54651a7e2a12cd06d4d.tar.zst
bun-f0fdda567868124f18e8a54651a7e2a12cd06d4d.zip
Update README.md
Diffstat (limited to '')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index b30ec3e75..42c640b6a 100644
--- a/README.md
+++ b/README.md
@@ -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
);
```