util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a>&lt;<a href="https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/foreign/MemorySegment.html" title="class or interface in java.lang.foreign" class="external-link">MemorySegment</a>&gt;&nbsp;cleanup)</span></div>
<div class="block">Reinterprets <code>addr</code> using target <code>arena</code> and <code>cleanupAction</code> (if any).
 The returned segment has size <code>layout().