MemorySegment function ( ByteBuffer arg0 , Object arg1 ) { ensureInitialized ( ) ; return factory . wrapPooledOffHeapMemory ( arg0 , arg1 ) ; }
creates a memory segment that wraps the off-heap memory backing the given bytebuffer . note that the bytebuffer needs to be a direct bytebuffer . this method is intended to be used for components which pool memory and create memory segments around long-lived memory regions . concode_field_sep Factory factory concode_field_sep MemorySegment wrapPooledHeapMemory concode_elem_sep MemorySegment wrapPooledHeapMemory concode_elem_sep void ensureInitialized concode_elem_sep MemorySegment allocateUnpooledSegment concode_elem_sep MemorySegment allocateUnpooledSegment concode_elem_sep MemorySegment allocateUnpooledSegment concode_elem_sep boolean isInitialized concode_elem_sep void initializeFactory concode_elem_sep Factory getFactory concode_elem_sep MemorySegment wrap concode_elem_sep MemorySegment wrap