cef_v8value_t.adjust_externally_allocated_memory

Adjusts the amount of registered external memory for the object. Used to give V8 an indication of the amount of externally allocated memory that is kept alive by JavaScript objects. V8 uses this information to decide when to perform global garbage collection. Each cef_v8value_t tracks the amount of external memory associated with it and automatically decreases the global total by the appropriate amount on its destruction. |change_in_bytes| specifies the number of bytes to adjust by. This function returns the number of bytes associated with the object after the adjustment. This function can only be called on user created objects.

struct cef_v8value_t
extern (System)
int function(cef_v8value_t* self, int change_in_bytes) nothrow adjust_externally_allocated_memory;

Meta