public final class Ssh2MpInt extends Object implements Serializable, Comparable<Ssh2MpInt>
Constructor and Description |
---|
Ssh2MpInt(byte[] rawData,
int offset,
int length)
Constructor.
|
Ssh2MpInt(long value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Ssh2MpInt o) |
boolean |
equals(Object obj) |
int |
getLength() |
byte[] |
getRawData() |
byte[] |
getValue() |
BigInteger |
getValueAsBigInteger() |
int |
hashCode() |
int |
length() |
String |
toString() |
public Ssh2MpInt(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public Ssh2MpInt(long value)
value
- valuepublic int getLength()
public byte[] getValue()
public BigInteger getValueAsBigInteger()
public int length()
public byte[] getRawData()
public int compareTo(Ssh2MpInt o)
compareTo
in interface Comparable<Ssh2MpInt>
Copyright © 2011–2016 Pcap4J.org. All rights reserved.