View source code
							
							
						
								Display the source code in std/experimental/allocator/building_blocks/bitmapped_block.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.experimental.allocator.building_blocks.bitmapped_block.SharedBitmappedBlock.this
Constructs a block allocator given a hunk of memory, or a desired capacity in bytes.
- If ParentAllocatorisNullAllocator, only the constructor takingdatais defined and the user is responsible for freeingdataif desired.
- Otherwise, both constructors are defined. The data-based constructor assumes memory has been allocated with the parent allocator. Thecapacity-based constructor usesParentAllocatorto allocate an appropriate contiguous hunk of memory. Regardless of the constructor used, the destructor releases the memory by usingParentAllocator..deallocate 
						
				this
				(
				
				  ubyte[] data
				
				);
				
				
				this
				(
				
				  ubyte[] data,
				
				  uint blockSize
				
				);
				
				
				this
				(
				
				  size_t capacity
				
				);
				
				
				this
				(
				
				  ParentAllocator parent,
				
				  size_t capacity
				
				);
				
				
				this
				(
				
				  size_t capacity,
				
				  uint blockSize
				
				);
				
				
				this
				(
				
				  ParentAllocator parent,
				
				  size_t capacity,
				
				  uint blockSize
				
				);
						
					
				Authors
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.