Package org.red5.io.matroska
Class VINT
- java.lang.Object
-
- org.red5.io.matroska.VINT
-
-
Field Summary
Fields Modifier and Type Field Description static longMASK_BYTE_1static longMASK_BYTE_2static longMASK_BYTE_3static longMASK_BYTE_4static longMASK_BYTE_8
-
Constructor Summary
Constructors Constructor Description VINT(long binary, byte length, long value)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]encode()method to encodeVINTas sequence of bytesstatic VINTfromBinary(long binary)method to constructVINTbased on its binary representationstatic VINTfromValue(long value)method to constructVINTbased on its valuelonggetBinary()getter for binarybytegetLength()getter for lengthlonggetValue()getter for valueStringtoString()method to get "pretty" representedVINT
-
-
-
Field Detail
-
MASK_BYTE_8
public static final long MASK_BYTE_8
- See Also:
- Constant Field Values
-
MASK_BYTE_4
public static final long MASK_BYTE_4
- See Also:
- Constant Field Values
-
MASK_BYTE_3
public static final long MASK_BYTE_3
- See Also:
- Constant Field Values
-
MASK_BYTE_2
public static final long MASK_BYTE_2
- See Also:
- Constant Field Values
-
MASK_BYTE_1
public static final long MASK_BYTE_1
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLength
public byte getLength()
getter for length- Returns:
- - length
-
getBinary
public long getBinary()
getter for binary- Returns:
- - binary
-
getValue
public long getValue()
getter for value- Returns:
- - value
-
fromBinary
public static VINT fromBinary(long binary)
method to constructVINTbased on its binary representation
-
-