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.
 
 
 
 
 
 

26 lines
543 B

name: duk_config_buffer
proto: |
void duk_config_buffer(duk_context *ctx, duk_idx_t index, void *ptr, duk_size_t len);
stack: |
[ ... buf! ... ] -> [ ... buf! ... ]
summary: |
<p>Set the external buffer pointer and length of an external buffer value.</p>
example: |
/* Create an external buffer and point it to my_buffer containing
* my_length bytes.
*/
duk_push_external_buffer(ctx);
duk_config_buffer(ctx, -1, my_buffer, my_length);
tags:
- stack
- buffer
seealso:
- duk_push_external_buffer
introduced: 1.3.0