Struct v8::RustAllocatorVtable [−][src]
#[repr(C)]pub struct RustAllocatorVtable<T> {
pub allocate: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void,
pub allocate_uninitialized: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void,
pub free: unsafe extern "C" fn(handle: &T, data: *mut c_void, len: usize),
pub reallocate: unsafe extern "C" fn(handle: &T, data: *mut c_void, old_length: usize, new_length: usize) -> *mut c_void,
pub drop: unsafe extern "C" fn(handle: *const T),
}
Expand description
A wrapper around the V8 Allocator class.
Fields
allocate: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void
allocate_uninitialized: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void
free: unsafe extern "C" fn(handle: &T, data: *mut c_void, len: usize)
reallocate: unsafe extern "C" fn(handle: &T, data: *mut c_void, old_length: usize, new_length: usize) -> *mut c_void
drop: unsafe extern "C" fn(handle: *const T)