mirror of https://github.com/svaarala/duktape.git
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.
20 lines
409 B
20 lines
409 B
=proto
|
|
void *duk_push_fixed_buffer(duk_context *ctx, size_t size);
|
|
|
|
=stack
|
|
[ ... ] -> [ ... buf! ]
|
|
|
|
=summary
|
|
<p>Allocate a fixed size buffer and push it to the value stack.
|
|
Shortcut for <code><a href="#duk_push_buffer">duk_push_buffer()</a></code>
|
|
with <code>dynamic = 0</code>.</p>
|
|
|
|
=example
|
|
void *p;
|
|
|
|
p = duk_push_fixed_buffer(ctx, 1024);
|
|
printf("allocated buffer, data area: %p\n", p);
|
|
|
|
=tags
|
|
stack
|
|
buffer
|
|
|