Passed to MakeGarbageCollected to specify how many bytes should be appended to the allocated object.
Example:
public:
explicit InlinedArray(size_t bytes) : size(bytes), byte_array(this + 1) {}
size_t size;
char* byte_array;
};
for (size_t i = 0; i < 4; i++) {
Process(inlined_array->byte_array[i]);
}
Definition: garbage-collected.h:53
T * MakeGarbageCollected(AllocationHandle &handle, Args &&... args)
Definition: allocation.h:336
constexpr AdditionalBytes(uint32_t bytes)
Definition: allocation.h:270