# Interface ICefv8BackingStore

Description
Hierarchy
Methods

## Unit

uCEFInterfaces

## Declaration

`type ICefv8BackingStore = interface(ICefBaseRefCounted)`

## Description

Structure representing a V8 ArrayBuffer backing store. The backing store holds the memory that backs an ArrayBuffer. It must be created on a thread with a valid V8 isolate (renderer main thread or WebWorker thread). Once created, the data() pointer can be safely read/written from any thread. This allows expensive operations like memcpy to be performed on a background thread before creating the ArrayBuffer on the V8 thread.

The backing store is consumed when passed to TCefv8ValueRef.NewArrayBufferFromBackingStore, after which IsValid() returns false (0).

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_v8_capi.h">CEF source file: /include/capi/cef_v8_capi.h (cef_v8_backing_store_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefv8BackingStore

## Overview

### Methods

Public | `function data: Pointer;`
Public | `function ByteLength: NativeUInt;`
Public | `function IsValid: boolean;`

## Description

### Methods

Public | `function data: Pointer;`
Returns a pointer to the allocated memory, or nullptr if the backing store has been consumed or is otherwise invalid. The pointer is safe to read/write from any thread. The caller must ensure all writes are complete before passing this object to TCefv8ValueRef.NewArrayBufferFromBackingStore(). Pointers obtained from this function should not be retained after calling TCefv8ValueRef.NewArrayBufferFromBackingStore(), as the memory will then be owned by the ArrayBuffer and subject to V8 garbage collection. ###### Attributes GUID['{4E84CA96-BDF1-4B27-8FEA-DF18C50740FA}']

Public | `function ByteLength: NativeUInt;`
Returns the size of the allocated memory in bytes, or 0 if the backing store has been consumed.

Public | `function IsValid: boolean;`
Returns true (1) if this backing store has not yet been consumed by TCefv8ValueRef.NewArrayBufferFromBackingStore().

Generated by PasDoc 1.0.4.