You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
713 B

define: DUK_USE_DATAPTR16
introduced: 1.1.0
related:
- DUK_USE_DATAPTR_ENC16
- DUK_USE_DATAPTR_DEC16
default: false
tags:
- lowmemory
- experimental
description: >
Enable "compression" of arbitrary data pointers into an unsigned 16-bit
value. Use together with DUK_USE_DATAPTR_ENC16 and DUK_USE_DATAPTR_DEC16.
Pointers compressed are any void pointers in C code, not just the Duktape
heap. Also NULL pointer must encode and decode correctly.
Currently it is required that NULL encodes to integer 0, and integer
0 decodes to NULL. No other pointer can be encoded to 0.
NOTE: This feature option is currently unimplemented, i.e. Duktape won't
compress any data pointers at the moment.