Package cpufeatures.headers.x86
Class X86Features
java.lang.Object
cpufeatures.headers.x86.X86Features
X86Features relies on preview features of the Java platform:
X86Featuresrefers to one or more preview APIs:MemoryAddress,MemoryLayout,MemorySegment,MemorySession,SegmentAllocator.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutPREVIEW$LAYOUT()static MemorySegmentPREVIEWallocate(SegmentAllocatorPREVIEW allocator) static MemorySegmentPREVIEWallocateArray(int len, SegmentAllocatorPREVIEW allocator) static MemorySegmentPREVIEWofAddress(MemoryAddressPREVIEW addr, MemorySessionPREVIEW session) static longsizeof()
-
Constructor Details
-
X86Features
public X86Features()
-
-
Method Details
-
$LAYOUT
-
sizeof
public static long sizeof() -
allocate
-
allocateArray
-
ofAddress
public static MemorySegmentPREVIEW ofAddress(MemoryAddressPREVIEW addr, MemorySessionPREVIEW session)
-
X86Featureswhen preview features are enabled.