Class GuidFFM
java.lang.Object
oshi.ffm.windows.com.GuidFFM
FFM representation of the Windows GUID structure.
A GUID (Globally Unique Identifier) is a 128-bit value used to identify COM interfaces and classes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe memory layout of a GUID structure (16 bytes).static final longSize of a GUID in bytes. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentCLSID_WbemLocator(Arena arena) CLSID_WbemLocator: {4590F811-1D3A-11D0-891F-00AA004B2E24}static MemorySegmentcreate(Arena arena, int data1, int data2, int data3, int d4_0, int d4_1, int d4_2, int d4_3, int d4_4, int d4_5, int d4_6, int d4_7) Creates a GUID memory segment from its components using integer values for convenience.static MemorySegmentCreates a GUID memory segment from its components.static MemorySegmentIID_IUnknown(Arena arena) IID_IUnknown: {00000000-0000-0000-C000-000000000046}static MemorySegmentIID_IWbemLocator(Arena arena) IID_IWbemLocator: {DC12A687-737F-11CF-884D-00AA004B2E24}
-
Field Details
-
LAYOUT
The memory layout of a GUID structure (16 bytes). -
SIZE
public static final long SIZESize of a GUID in bytes.
-
-
Method Details
-
create
Creates a GUID memory segment from its components.- Parameters:
arena- the arena for memory allocationdata1- the first 4 bytes (big-endian)data2- the next 2 bytes (big-endian)data3- the next 2 bytes (big-endian)data4- the remaining 8 bytes- Returns:
- a memory segment containing the GUID
-
create
public static MemorySegment create(Arena arena, int data1, int data2, int data3, int d4_0, int d4_1, int d4_2, int d4_3, int d4_4, int d4_5, int d4_6, int d4_7) Creates a GUID memory segment from its components using integer values for convenience.- Parameters:
arena- the arena for memory allocationdata1- the first 4 bytesdata2- the next 2 bytesdata3- the next 2 bytesd4_0- data4[0]d4_1- data4[1]d4_2- data4[2]d4_3- data4[3]d4_4- data4[4]d4_5- data4[5]d4_6- data4[6]d4_7- data4[7]- Returns:
- a memory segment containing the GUID
-
CLSID_WbemLocator
CLSID_WbemLocator: {4590F811-1D3A-11D0-891F-00AA004B2E24}- Parameters:
arena- the arena for memory allocation- Returns:
- a memory segment containing the CLSID_WbemLocator GUID
-
IID_IWbemLocator
IID_IWbemLocator: {DC12A687-737F-11CF-884D-00AA004B2E24}- Parameters:
arena- the arena for memory allocation- Returns:
- a memory segment containing the IID_IWbemLocator GUID
-
IID_IUnknown
IID_IUnknown: {00000000-0000-0000-C000-000000000046}- Parameters:
arena- the arena for memory allocation- Returns:
- a memory segment containing the IID_IUnknown GUID
-