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.
 
 
 
 
 
 

22 lines
514 B

=proto
void duk_to_fixed_buffer(duk_context *ctx, int index);
=stack
[ ... val! ... ]
=summary
<p>Convert buffer at <code>index</code> to a fixed buffer. If the buffer is
already fixed, does nothing. If conversion fails, the value at <code>index</code>
is not a buffer, or <code>index</code> is invalid, throws an error.</p>
=example
duk_to_fixed_buffer(ctx, -3);
=tags
stack
buffer
=fixme
Naming: duk_fixate_buffer?
Reverse operation: convert buffer to dynamic?
Return value, void pointer for consistency?