ContiguousFreeList.this

Constructors setting up the memory structured as a free list.

  1. this(ubyte[] buffer)
  2. this(ParentAllocator parent, ubyte[] buffer)
  3. this(size_t bytes)
  4. this(ParentAllocator parent, size_t bytes)
  5. this(size_t bytes, size_t max)
    struct ContiguousFreeList(ParentAllocator, size_t minSize, size_t maxSize = minSize)
    static if(!stateSize!ParentAllocator && (maxSize == chooseAtRuntime || maxSize == unbounded))
    this
    (
    size_t bytes
    ,
    size_t max
    )
  6. this(ParentAllocator parent, size_t bytes, size_t max)
  7. this(size_t bytes, size_t min, size_t max)
  8. this(ParentAllocator parent, size_t bytes, size_t min, size_t max)

Parameters

bytes size_t

Bytes (not items) to be allocated for the free list. Memory will be allocated during construction and deallocated in the destructor.

max size_t

Maximum size eligible for freelisting. Construction with this parameter is defined only if maxSize == chooseAtRuntime or maxSize == unbounded.

Meta