Package com.sun.jna.platform.win32
Klasse WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
- Bekannte direkte Unterklassen:
WinNT.CACHE_RELATIONSHIP
,WinNT.GROUP_RELATIONSHIP
,WinNT.NUMA_NODE_RELATIONSHIP
,WinNT.PROCESSOR_RELATIONSHIP
,WinNT.UNKNOWN_RELATIONSHIP
- Umschließende Schnittstelle:
WinNT
@FieldOrder({"relationship","size"})
public abstract static class WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
extends Structure
Contains information about the relationships of logical processors and
related hardware. The
Kernel32.GetLogicalProcessorInformationEx(int, com.sun.jna.Pointer, com.sun.jna.platform.win32.WinDef.DWORDByReference)
function uses this structure.
The native structure contains a union, which is mapped to JNA as subclasses.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungint
The type of relationship between the logical processors.int
The size of the structure, in bytes.Von Klasse geerbte Felder com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
This constructor should only be called by a subclass to ensure memory is properly allocated to the subclass fields. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfromPointer
(Pointer memory) Create a new instance of the appropriate subclass ofWinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
from the providedPointer
to native memory.Von Klasse geerbte Methoden com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Felddetails
-
relationship
public int relationshipThe type of relationship between the logical processors. This parameter can be one of the following values:WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationCache
,WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationGroup
,WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationNumaNode
,WinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCore
, orWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorPackage
.This field identifies which subclass will be instantiated by the
fromPointer(Pointer)
method. -
size
public int sizeThe size of the structure, in bytes.
-
-
Konstruktordetails
-
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
public SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX() -
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
This constructor should only be called by a subclass to ensure memory is properly allocated to the subclass fields.- Parameter:
memory
- A pointer to the allocated native memory.
-
-
Methodendetails
-
fromPointer
Create a new instance of the appropriate subclass ofWinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
from the providedPointer
to native memory. Use this method rather thanSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX(Pointer)
to properly cast the Pointer to the appropriate subclass and populate variable length arrays.- Parameter:
memory
- A pointer to allocated memory to be cast to this class.- Gibt zurück:
- An instance of the appropriate subclass depending on the
value of the
relationship
field. If therelationship
member isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCore
orWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorPackage
, the return type will beWinNT.PROCESSOR_RELATIONSHIP
. If therelationship
member isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationNumaNode
, the return type will beWinNT.NUMA_NODE_RELATIONSHIP
. If therelationship
member isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationCache
, the return type will beWinNT.CACHE_RELATIONSHIP
. If therelationship
member isWinNT.LOGICAL_PROCESSOR_RELATIONSHIP.RelationGroup
, the return type will beWinNT.GROUP_RELATIONSHIP
.
-