The OpenD Programming Language

SharedBitmappedBlock.this

Constructs a block allocator given a hunk of memory, or a desired capacity in bytes.

  • If ParentAllocator is `NullAllocator`, only the constructor taking data is defined and the user is responsible for freeing data if desired.
  • Otherwise, both constructors are defined. The data-based constructor assumes memory has been allocated with the parent allocator. The capacity-based constructor uses ParentAllocator to allocate an appropriate contiguous hunk of memory. Regardless of the constructor used, the destructor releases the memory by using ParentAllocator.deallocate.
  1. this(ubyte[] data)
  2. this(ubyte[] data, uint blockSize)
  3. this(size_t capacity)
    struct SharedBitmappedBlock(size_t theBlockSize, uint theAlignment = platformAlignment, ParentAllocator = NullAllocator, Flag!"multiblock" f = Yes.multiblock)
    version(StdDdoc)
    this
    (
    size_t capacity
    )
  4. this(ParentAllocator parent, size_t capacity)
  5. this(size_t capacity, uint blockSize)
  6. this(ParentAllocator parent, size_t capacity, uint blockSize)

Meta