tern.experimental.ds_allocator

Very fast and very not thread-safe fixed data segment allocator.

Members

Static functions

dsNew
T dsNew(size_t length)

Creates an array of type T on the ds with a specified initial length.

dsNew
T dsNew()

Allocates T in the data segment, this will just create T normally for value types.

dsResize
void dsResize(T arr, size_t length)

Resizes a previously allocated array in the data segment to the specified length.

dsResizeBeneath
void dsResizeBeneath(T arr, size_t length)

Resizes a previously allocated array in the data segment to the specified length from beneath. New elements will become [0..length] (or removed.)

dsbNew
T dsbNew()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta