name: duk_require_buffer proto: | void *duk_require_buffer(duk_context *ctx, duk_idx_t idx, duk_size_t *out_size); stack: | [ ... val! ... ] summary: |
Like duk_get_buffer()
,
but throws an error if the value at idx
is not a (plain)
buffer or if the index is invalid.