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
502 B

=proto
void duk_to_fixed_buffer(duk_context *ctx, int index);
=stack
[ ... val! ... ]
=summary
<p>Convert buffer at <tt>index</tt> to a fixed buffer. If the buffer is
already fixed, does nothing. If conversion fails, the value at <tt>index</tt>
is not a buffer, or <tt>index</tt> 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?