duk_to_buffer_raw

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
extern (C)
void*
duk_to_buffer_raw
(
duk_context* ctx
,
duk_idx_t idx
,
duk_size_t* out_size
,
duk_uint_t flags
)

Meta