public class EbmlUtil extends Object
Modifier and Type | Field and Description |
---|---|
static long[] |
ebmlLengthMasks |
static long |
eight |
static long |
five |
static long |
four |
static byte[] |
lengthOptions |
static long |
one |
static long |
seven |
static long |
six |
static long |
three |
static long |
two |
Constructor and Description |
---|
EbmlUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
computeLength(byte b)
This method is used mostly during reading EBML bitstream.
|
static byte[] |
ebmlEncode(long value)
Encodes unsigned integer value according to ebml convention
|
static byte[] |
ebmlEncodeLen(long value,
int length)
Encodes unsigned integer with given length
|
static int |
ebmlLength(long v)
This method is used mostly during writing EBML bitstream.
|
static String |
toHexString(byte[] a) |
public static final byte[] lengthOptions
public static final long one
public static final long two
public static final long three
public static final long four
public static final long five
public static final long six
public static final long seven
public static final long eight
public static final long[] ebmlLengthMasks
public static byte[] ebmlEncodeLen(long value, int length)
value
- unsigned integer to be encodedlength
- ebml sequence lengthpublic static byte[] ebmlEncode(long value)
value
- unsigned integer to be encodedpublic static int computeLength(byte b)
b
- public static int ebmlLength(long v)
v
- unsigned integer to be encodedpublic static String toHexString(byte[] a)
Copyright © 2019. All rights reserved.