=proto void *duk_require_buffer(duk_context *ctx, int index, size_t *out_size); =stack [ ... val! ... ] =summary
Like duk_get_buffer(), but throws an error if the value at index is not a buffer or if the index is invalid.
duk_get_buffer()
index