Creates a buffer at a specified offset on the heap.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
The size of the buffer, in bytes.
The distance, in bytes, to place the buffer relative to the start of the heap.
A new buffer, or
nil if the heap is not a placement heap.
The heap's type must be
heap method to determine the required size and alignment. If you don't align the buffer correctly or it extends past the end of the heap, the behavior is undefined.
Any resources in the heap within an overlapping half-open range
[offset, offset + required are implicitly aliased with the new resource.