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)
  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)
    struct ContiguousFreeList(ParentAllocator, size_t minSize, size_t maxSize = minSize)
    static if(stateSize!ParentAllocator && (maxSize == chooseAtRuntime || maxSize == unbounded) && minSize == chooseAtRuntime)
    this
    (
    ParentAllocator parent
    ,
    size_t bytes
    ,
    size_t min
    ,
    size_t max
    )

Parameters

parent ParentAllocator

Parent allocator. For construction from stateless allocators, use their instance static member.

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.

min size_t

Minimum size eligible for freelisting. Construction with this parameter is defined only if minSize == chooseAtRuntime. If this condition is met and no min parameter is present, min is initialized with max.

Meta