llocateArray</span><wbr><span class="parameters">(long&nbsp;elementCount,
 <a href="https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/foreign/SegmentAllocator.html" title="class or interface in java.lang.foreign" class="external-link">SegmentAllocator</a>&nbsp;allocator)</span></div>
<div class="block">Allocate an array of size <code>elementCount</code> using <code>allocator</code>.
 The returned segment has size <code>elementCount * layout().byteSize()</code>.</div>
</div>
</section>
<