public class GuidPacketRepresentation extends com.aspose.ms.lang.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.
Constructor and Description |
---|
GuidPacketRepresentation() |
GuidPacketRepresentation(int data1,
short data2,
short data3,
long data4)
Initializes a new instance of the
GuidPacketRepresentation struct. |
Modifier and Type | Method and Description |
---|---|
GuidPacketRepresentation |
Clone() |
void |
CloneTo(GuidPacketRepresentation that) |
boolean |
equals(Object obj) |
int |
getData1()
Gets or sets the value of the Data1 member (section 2.3.4), in little-endian byte order.
|
short |
getData2()
Gets or sets the value of the Data2 member (section 2.3.4), in little-endian byte order.
|
short |
getData3()
Gets or sets the value of the Data3 member (section 2.3.4), in little-endian byte order.
|
long |
getData4()
Gets or sets the value of the Data4 member (section 2.3.4), in little-endian byte order.
|
int |
hashCode() |
static boolean |
isEquals(GuidPacketRepresentation obj1,
GuidPacketRepresentation obj2) |
void |
setData1(int value)
Gets or sets the value of the Data1 member (section 2.3.4), in little-endian byte order.
|
void |
setData2(short value)
Gets or sets the value of the Data2 member (section 2.3.4), in little-endian byte order.
|
void |
setData3(short value)
Gets or sets the value of the Data3 member (section 2.3.4), in little-endian byte order.
|
void |
setData4(long value)
Gets or sets the value of the Data4 member (section 2.3.4), in little-endian byte order.
|
String |
toString()
Returns a
System.String that represents this instance. |
public GuidPacketRepresentation()
public GuidPacketRepresentation(int data1, short data2, short data3, long data4)
Initializes a new instance of the GuidPacketRepresentation
struct.
data1
- The data1.data2
- The data2.data3
- The data3.data4
- The data4.public int getData1()
Gets or sets the value of the Data1 member (section 2.3.4), in little-endian byte order.
Value: The data1.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.public short getData2()
Gets or sets the value of the Data2 member (section 2.3.4), in little-endian byte order.
Value: The data2.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.public short getData3()
Gets or sets the value of the Data3 member (section 2.3.4), in little-endian byte order.
Value: The data3.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.public long getData4()
Gets or sets the value of the Data4 member (section 2.3.4), in little-endian byte order.
Value: The data4.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.public String toString()
Returns a System.String
that represents this instance.
public void CloneTo(GuidPacketRepresentation that)
CloneTo
in class com.aspose.ms.System.ValueType<GuidPacketRepresentation>
public GuidPacketRepresentation Clone()
Clone
in class com.aspose.ms.System.ValueType<GuidPacketRepresentation>
public static boolean isEquals(GuidPacketRepresentation obj1, GuidPacketRepresentation obj2)