The OpenD Programming Language

Region.this

Constructs a region backed by a user-provided store. Assumes the memory was allocated with ParentAllocator.

  1. this(ubyte[] store)
  2. this(size_t n)
  3. this(ParentAllocator parent, size_t n)
    struct Region(ParentAllocator, uint minAlign = platformAlignment, Flag!"growDownwards" growDownwards = No.growDownwards)
    static if(stateSize!ParentAllocator)
    this
    (
    ParentAllocator parent
    ,
    size_t n
    )

Parameters

n size_t

Bytes to allocate using ParentAllocator. If parent.allocate(n) returns null, the region will be initialized as empty (correctly initialized but unable to allocate).

Meta