dparsergen v0.1.0 (2023-05-07T14:44:42Z)
Dub
Repo
SimpleArrayAllocator.allocate
dparsergen
core
utils
SimpleArrayAllocator
Allocate array.
struct
SimpleArrayAllocator
(T, size_t blockSize = 4 * 1024 - 32)
T
[]
allocate
(
U
)
(
U
value
,
size_t
num
)
Parameters
value
U
Initial value used for every element.
num
size_t
Length of array.
Meta
Source
See Implementation
dparsergen
core
utils
SimpleArrayAllocator
functions
allocate
clearAll
manifest constants
classSize
classesPerBlock
Allocate array.