| Modifier and Type | Field and Description |
|---|---|
static long |
MASK_BYTE_1 |
static long |
MASK_BYTE_2 |
static long |
MASK_BYTE_3 |
static long |
MASK_BYTE_4 |
static long |
MASK_BYTE_8 |
| Constructor and Description |
|---|
VINT(long binary,
byte length,
long value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode()
method to encode
VINT as sequence of bytes |
static VINT |
fromBinary(long binary)
method to construct
VINT based on its binary representation |
static VINT |
fromValue(long value)
method to construct
VINT based on its value |
long |
getBinary()
getter for binary
|
byte |
getLength()
getter for length
|
long |
getValue()
getter for value
|
String |
toString()
method to get "pretty" represented
VINT |
public static final long MASK_BYTE_8
public static final long MASK_BYTE_4
public static final long MASK_BYTE_3
public static final long MASK_BYTE_2
public static final long MASK_BYTE_1
public byte getLength()
public long getBinary()
public long getValue()
public static VINT fromBinary(long binary)
VINT based on its binary representationCopyright © 2005–2017 Red5. All rights reserved.