public class Compact64bitInt extends BasicObject
Modifier and Type | Field and Description |
---|---|
static int |
CompactUint14bitType
Specify the type value for compact uint 14 bits type value.
|
static int |
CompactUint21bitType
Specify the type value for compact uint 21 bits type value.
|
static int |
CompactUint28bitType
Specify the type value for compact uint 28 bits type value.
|
static int |
CompactUint35bitType
Specify the type value for compact uint 35 bits type value.
|
static int |
CompactUint42bitType
Specify the type value for compact uint 42 bits type value.
|
static int |
CompactUint49bitType
Specify the type value for compact uint 49 bits type value.
|
static int |
CompactUint64bitType
Specify the type value for compact uint 64 bits type value.
|
static int |
CompactUint7bitType
Specify the type value for compact uint 7 bits type value.
|
static int |
CompactUintNullType
Specify the type value for compact uint zero type value.
|
Constructor and Description |
---|
Compact64bitInt()
Initializes a new instance of the Compact64bitInt class, this is the default constructor.
|
Compact64bitInt(long decodedValue)
Initializes a new instance of the Compact64bitInt class with specified value.
|
Modifier and Type | Method and Description |
---|---|
protected int |
doDeserializeFromByteArray(byte[] byteArray,
int startIndex)
This method is used to deserialize the Compact64bitInt basic object from the specified byte
array and start index.
|
long |
getDecodedValue() |
int |
getType() |
List<Byte> |
serializeToByteList()
This method is used to convert the element of Compact64bitInt basic object into a byte List.
|
Compact64bitInt |
setDecodedValue(long decodedValue) |
Compact64bitInt |
setType(int type) |
deserializeFromByteArray, parse
public static final int CompactUintNullType
public static final int CompactUint7bitType
public static final int CompactUint14bitType
public static final int CompactUint21bitType
public static final int CompactUint28bitType
public static final int CompactUint35bitType
public static final int CompactUint42bitType
public static final int CompactUint49bitType
public static final int CompactUint64bitType
public Compact64bitInt(long decodedValue)
decodedValue
- Decoded valuepublic Compact64bitInt()
public List<Byte> serializeToByteList() throws IOException
serializeToByteList
in interface IFSSHTTPBSerializable
serializeToByteList
in class BasicObject
IOException
protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException
doDeserializeFromByteArray
in class BasicObject
byteArray
- Specify the byte array.startIndex
- Specify the start index from the byte array.IOException
public int getType()
public Compact64bitInt setType(int type)
public long getDecodedValue()
public Compact64bitInt setDecodedValue(long decodedValue)
Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.