aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
);
```