type TCefv8BackingStoreRef = class(TCefBaseRefCountedRef, ICefv8BackingStore)
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).
<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))
| Protected | function data: Pointer; |
| Protected | function ByteLength: NativeUInt; |
| Protected | function IsValid: boolean; |
| Public | class function UnWrap(data_: Pointer): ICefv8BackingStore; |
| Public | class function New(byte_length: NativeUInt): ICefv8BackingStore; |
| Protected | 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. | |
| Protected | function ByteLength: NativeUInt; |
|
Returns the size of the allocated memory in bytes, or 0 if the backing store has been consumed. | |
| Protected | function IsValid: boolean; |
|
Returns true (1) if this backing store has not yet been consumed by TCefv8ValueRef.NewArrayBufferFromBackingStore(). | |
| Public | class function UnWrap(data_: Pointer): ICefv8BackingStore; |
|
This item has no description. | |
| Public | class function New(byte_length: NativeUInt): ICefv8BackingStore; |
|
This item has no description. | |