Struct js::jsapi::JSAutoStructuredCloneBuffer [] [src]

#[repr(C)]
pub struct JSAutoStructuredCloneBuffer { pub data_: *mut u64, pub nbytes_: usize, pub version_: u32, pub ownTransferables_: JSAutoStructuredCloneBuffer_StructuredClone_h_unnamed_7, pub callbacks_: *const JSStructuredCloneCallbacks, pub closure_: *mut c_void, }

RAII sugar for JS_WriteStructuredClone.

Fields

Methods

impl JSAutoStructuredCloneBuffer
[src]

[src]

[src]

Copy some memory. It will be automatically freed by the destructor.

[src]

Adopt some memory. It will be automatically freed by the destructor. data must have been allocated by the JS engine (e.g., extracted via JSAutoStructuredCloneBuffer::steal).

[src]

Release the buffer and transfer ownership to the caller. The caller is responsible for calling JS_ClearStructuredClone or feeding the memory back to JSAutoStructuredCloneBuffer::adopt.

[src]

[src]

[src]

Trait Implementations

impl Debug for JSAutoStructuredCloneBuffer
[src]

[src]

Formats the value using the given formatter.