GuidPacketRepresentation
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
public class GuidPacketRepresentation extends Struct<GuidPacketRepresentation>
The packet version is used within block protocols. The following diagram represents a GUID as an opaque sequence of bytes. A GUID, also known as a UUID, is a 16-byte structure, intended to serve as a unique identifier for an object. There are three representations of a GUID, as described in the following sections.
Constructors
Constructor | Description |
---|---|
GuidPacketRepresentation() | |
GuidPacketRepresentation(int data1, short data2, short data3, long data4) | Initializes a new instance of the GuidPacketRepresentation struct. |
Methods
Method | Description |
---|---|
getData1() | Gets or sets the value of the Data1 member (section 2.3.4), in little-endian byte order. |
setData1(int value) | Gets or sets the value of the Data1 member (section 2.3.4), in little-endian byte order. |
getData2() | Gets or sets the value of the Data2 member (section 2.3.4), in little-endian byte order. |
setData2(short value) | Gets or sets the value of the Data2 member (section 2.3.4), in little-endian byte order. |
getData3() | Gets or sets the value of the Data3 member (section 2.3.4), in little-endian byte order. |
setData3(short value) | Gets or sets the value of the Data3 member (section 2.3.4), in little-endian byte order. |
getData4() | Gets or sets the value of the Data4 member (section 2.3.4), in little-endian byte order. |
setData4(long value) | Gets or sets the value of the Data4 member (section 2.3.4), in little-endian byte order. |
toString() | Returns a System.String that represents this instance. |
CloneTo(GuidPacketRepresentation that) | |
Clone() | |
hashCode() | |
equals(Object obj) | |
isEquals(GuidPacketRepresentation obj1, GuidPacketRepresentation obj2) |
GuidPacketRepresentation()
public GuidPacketRepresentation()
GuidPacketRepresentation(int data1, short data2, short data3, long data4)
public GuidPacketRepresentation(int data1, short data2, short data3, long data4)
Initializes a new instance of the GuidPacketRepresentation
struct.
Parameters:
Parameter | Type | Description |
---|---|---|
data1 | int | The data1. |
data2 | short | The data2. |
data3 | short | The data3. |
data4 | long | The data4. |
getData1()
public int getData1()
Gets or sets the value of the Data1 member (section 2.3.4), in little-endian byte order.
Value: The data1.
Returns: int
setData1(int value)
public void setData1(int value)
Gets or sets the value of the Data1 member (section 2.3.4), in little-endian byte order.
Value: The data1.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getData2()
public short getData2()
Gets or sets the value of the Data2 member (section 2.3.4), in little-endian byte order.
Value: The data2.
Returns: short
setData2(short value)
public void setData2(short value)
Gets or sets the value of the Data2 member (section 2.3.4), in little-endian byte order.
Value: The data2.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
getData3()
public short getData3()
Gets or sets the value of the Data3 member (section 2.3.4), in little-endian byte order.
Value: The data3.
Returns: short
setData3(short value)
public void setData3(short value)
Gets or sets the value of the Data3 member (section 2.3.4), in little-endian byte order.
Value: The data3.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
getData4()
public long getData4()
Gets or sets the value of the Data4 member (section 2.3.4), in little-endian byte order.
Value: The data4.
Returns: long
setData4(long value)
public void setData4(long value)
Gets or sets the value of the Data4 member (section 2.3.4), in little-endian byte order.
Value: The data4.
Parameters:
Parameter | Type | Description |
---|---|---|
value | long |
toString()
public String toString()
Returns a System.String
that represents this instance.
Returns:
java.lang.String - A System.String
that represents this instance.
CloneTo(GuidPacketRepresentation that)
public void CloneTo(GuidPacketRepresentation that)
Parameters:
Parameter | Type | Description |
---|---|---|
that | GuidPacketRepresentation |
Clone()
public GuidPacketRepresentation Clone()
Returns: GuidPacketRepresentation
hashCode()
public int hashCode()
Returns: int
equals(Object obj)
public boolean equals(Object obj)
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object |
Returns: boolean
isEquals(GuidPacketRepresentation obj1, GuidPacketRepresentation obj2)
public static boolean isEquals(GuidPacketRepresentation obj1, GuidPacketRepresentation obj2)
Parameters:
Parameter | Type | Description |
---|---|---|
obj1 | GuidPacketRepresentation | |
obj2 | GuidPacketRepresentation |
Returns: boolean