aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-glue.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-02 03:14:38 +0000
committerstephan <stephan@noemail.net>2022-10-02 03:14:38 +0000
commit9fdce595ebc88dd3a5c5a94a72981279e094423c (patch)
tree8ff34073fa5145346ff74b74e69b42b945e9bd8d /ext/wasm/api/sqlite3-api-glue.js
parent63e9ec2f9c7042fc8fb3f858144ee9ebe5408f69 (diff)
downloadsqlite-9fdce595ebc88dd3a5c5a94a72981279e094423c.tar.gz
sqlite-9fdce595ebc88dd3a5c5a94a72981279e094423c.zip
Doc typo fixes.
FossilOrigin-Name: e528675da3971907666c7d2d09763975a105ec585dc5122145f65905d535bed8
Diffstat (limited to 'ext/wasm/api/sqlite3-api-glue.js')
-rw-r--r--ext/wasm/api/sqlite3-api-glue.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.js b/ext/wasm/api/sqlite3-api-glue.js
index b6ec1695e..28bba5a74 100644
--- a/ext/wasm/api/sqlite3-api-glue.js
+++ b/ext/wasm/api/sqlite3-api-glue.js
@@ -276,21 +276,21 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
/**
A convenience wrapper for allocChunks() which sizes each chunks
as either 8 bytes (safePtrSize is truthy) or wasm.ptrSizeof (if
- safePtrSize is truthy).
+ safePtrSize is falsy).
How it returns its result differs depending on its first
argument: if it's 1, it returns a single pointer value. If it's
more than 1, it returns the same as allocChunks().
- When one of the pointers refers to a 64-bit value, e.g. a
- double or int64, and that value must be written or fetch,
+ When a returned pointers will refer to a 64-bit value, e.g. a
+ double or int64, and that value must be written or fetched,
e.g. using wasm.setMemValue() or wasm.getMemValue(), it is
important that the pointer in question be aligned to an 8-byte
boundary or else it will not be fetched or written properly and
will corrupt or read neighboring memory.
- However, when all pointers involved are "small", it is safe to
- pass a falsy value to save to memory.
+ However, when all pointers involved point to "small" data, it
+ is safe to pass a falsy value to save to memory.
*/
wasm.pstack.allocPtr = (n=1,safePtrSize=true) =>{
return 1===n