Class Ssh2MpInt
java.lang.Object
org.pcap4j.packet.Ssh2MpInt
- All Implemented Interfaces:
Serializable, Comparable<Ssh2MpInt>
- Since:
- pcap4j 1.0.1
- See Also:
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
length
private final int length -
value
private final byte[] value
-
-
Constructor Details
-
Ssh2MpInt
Constructor. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Ssh2MpInt
public Ssh2MpInt(long value) - Parameters:
value- value
-
-
Method Details
-
getLength
public int getLength()- Returns:
- value of the length field
-
getValue
public byte[] getValue()- Returns:
- value
-
getValueAsBigInteger
- Returns:
- value as BigInteger
-
length
public int length()- Returns:
- length
-
getRawData
public byte[] getRawData()- Returns:
- rawData
-
toString
-
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<Ssh2MpInt>
-