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

ConstructorDescription
GuidPacketRepresentation()
GuidPacketRepresentation(int data1, short data2, short data3, long data4)Initializes a new instance of the GuidPacketRepresentation struct.

Methods

MethodDescription
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:

ParameterTypeDescription
data1intThe data1.
data2shortThe data2.
data3shortThe data3.
data4longThe 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:

ParameterTypeDescription
valueint

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:

ParameterTypeDescription
valueshort

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:

ParameterTypeDescription
valueshort

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:

ParameterTypeDescription
valuelong

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:

ParameterTypeDescription
thatGuidPacketRepresentation

Clone()

public GuidPacketRepresentation Clone()

Returns: GuidPacketRepresentation

hashCode()

public int hashCode()

Returns: int

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

isEquals(GuidPacketRepresentation obj1, GuidPacketRepresentation obj2)

public static boolean isEquals(GuidPacketRepresentation obj1, GuidPacketRepresentation obj2)

Parameters:

ParameterTypeDescription
obj1GuidPacketRepresentation
obj2GuidPacketRepresentation

Returns: boolean