@Structure.FieldOrder(value={"Data1","Data2","Data3","Data4"}) public static class Guid.GUID extends Structure
Modifier and Type | Class and Description |
---|---|
static class |
Guid.GUID.ByReference
The Class ByReference.
|
static class |
Guid.GUID.ByValue |
Structure.FieldOrder, Structure.StructField
Modifier and Type | Field and Description |
---|---|
int |
Data1
The Data1.
|
short |
Data2
The Data2.
|
short |
Data3
The Data3.
|
byte[] |
Data4
The Data4.
|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor and Description |
---|
GUID()
Instantiates a new guid.
|
GUID(byte[] data)
Instantiates a new guid.
|
GUID(Guid.GUID guid)
Instantiates a new guid.
|
GUID(Pointer memory)
Instantiates a new guid.
|
GUID(java.lang.String guid)
Instantiates a new guid.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static Guid.GUID |
fromBinary(byte[] data)
From binary.
|
static Guid.GUID |
fromString(java.lang.String guid)
From string.
|
int |
hashCode() |
static Guid.GUID |
newGuid()
Generates a new guid.
|
byte[] |
toByteArray()
To byte array.
|
java.lang.String |
toGuidString()
The value of this Guid, formatted as follows:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
|
protected void |
writeFieldsToMemory()
Write fields to backing memory.
|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public int Data1
public short Data2
public short Data3
public byte[] Data4
public GUID()
public GUID(Guid.GUID guid)
guid
- the guidpublic GUID(java.lang.String guid)
guid
- the guidpublic GUID(byte[] data)
data
- the datapublic GUID(Pointer memory)
memory
- the memorypublic boolean equals(java.lang.Object o)
public int hashCode()
public static Guid.GUID fromBinary(byte[] data)
data
- the datapublic static Guid.GUID fromString(java.lang.String guid)
guid
- the guidpublic static Guid.GUID newGuid()
public byte[] toByteArray()
public java.lang.String toGuidString()
protected void writeFieldsToMemory()