Std.Mem
This page is still under construction!
namespace Std.Mem
Std.Mem implements tools to manage memory, memory allocation,
deallocation and common memory access configuration.
@public func alloc(type T, uint length, Alignment alignment) []TAllocates a slice in heap memory
type T:
Slice's element type.
uint length:
Desired length.
Alignment alignment:
Desired alignment.
returns []T:
The allocated slice
@public func create(type T, Alignment alignment) *TAllocates an object in heap memory
type T:
Object's element type.
Alignment alignment:
Desired alignment.
returns *T:
The allocated object