DynamicPool.alloc

Returns memory block of the request size.

If there is no preallocated block in the pool, new'd be allocated (with blockSize length regardless of len parameter).

  1. void* alloc(size_t len)
    struct DynamicPool(size_t blockSize)
    nothrow @nogc @safe pure
    void*
    alloc
    (
    size_t len
    )
  2. T* alloc(ARGS args)

Return Value

Type: void*

Address of the memory block or null if it fails to allocate.

Meta