SharedRegion.this

Constructs a region backed by a user-provided store. Assumes the memory was allocated with ParentAllocator (if different from `NullAllocator`).

  1. this(ubyte[] store)
  2. this(size_t n)
    struct SharedRegion(ParentAllocator = NullAllocator, uint minAlign = platformAlignment, Flag!"growDownwards" growDownwards = No.growDownwards)
    nothrow @nogc
    static if(!is(ParentAllocator == NullAllocator))
    this
    (
    size_t n
    )

Parameters

n size_t

Bytes to allocate using ParentAllocator. This constructor is only defined If ParentAllocator is different from `NullAllocator`. If parent.allocate(n) returns null, the region will be initialized as empty (correctly initialized but unable to allocate).

Meta