cef_v8_value_create_array_buffer

Function cef_v8_value_create_array_buffer 

Source
pub unsafe extern "C" fn cef_v8_value_create_array_buffer(
    buffer: *mut c_void,
    length: usize,
    release_callback: *mut cef_v8_array_buffer_release_callback_t,
) -> *mut cef_v8_value_t
Expand description

Create a new cef_v8_value_t object of type ArrayBuffer which wraps the provided |buffer| of size |length| bytes. The ArrayBuffer is externalized, meaning that it does not own |buffer|. The caller is responsible for freeing |buffer| when requested via a call to cef_v8_array_buffer_release_callback_t::ReleaseBuffer. This function should only be called from within the scope of a cef_render_process_handler_t, cef_v8_handler_t or cef_v8_accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8_context_t reference.

NOTE: Always returns nullptr when V8 sandbox is enabled.