mentAllocator</a>&nbsp;allocator)</span></div>
<div class="block">Allocate a segment of size <code>layout().byteSize()</code> using <code>allocator</code></div>
</div>
</section>
</li>
<li>
<section class="detail" id="allocateArray(long,java.lang.foreign.SegmentAllocator)">
<h3>allocateArray</h3>
<div class="horizontal-scroll">
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/l