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