Struct rusty_v8::BackingStore[][src]

#[repr(C)]
pub struct BackingStore(_);
Expand description

A wrapper around the backing store (i.e. the raw memory) of an array buffer. See a document linked in http://crbug.com/v8/9908 for more information.

The allocation and destruction of backing stores is generally managed by V8. Clients should always use standard C++ memory ownership types (i.e. std::unique_ptr and std::shared_ptr) to manage lifetimes of backing stores properly, since V8 internal objects may alias backing stores.

This object does not keep the underlying |ArrayBuffer::Allocator| alive by default. Use Isolate::CreateParams::array_buffer_allocator_shared when creating the Isolate to make it hold a reference to the allocator itself.

Implementations

Return a pointer to the beginning of the memory block for this backing store. The pointer is only valid as long as this backing store object lives.

The length (in bytes) of this backing store.

Indicates whether the backing store was created for an ArrayBuffer or a SharedArrayBuffer.

Trait Implementations

Formats the value using the given formatter. Read more

Returns a u8 slice refencing the data in the backing store.

The resulting type after dereferencing.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.