docs/doc/reference/com/google/android/exoplayer2/util/ParsableNalUnitBitArray.html
Package com.google.android.exoplayer2.util
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classParsableNalUnitBitArrayextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Wraps a byte array, providing methods that allow it to be read as a NAL unit bitstream.
Whenever the byte sequence [0, 0, 3] appears in the wrapped byte array, it is treated as [0, 0] for all reading/skipping operations, which makes the bitstream appear to be unescaped.
Constructors | Constructor | Description |
| --- | --- |
| ParsableNalUnitBitArray(byte[] data, int offset, int limit) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | canReadBits(int numBits) |
Deprecated.
Returns whether it's possible to read n bits starting from the current offset.
|
| boolean | canReadExpGolombCodedNum() |
Deprecated.
Returns whether it is possible to read an Exp-Golomb-coded integer starting from the current offset.
|
| boolean | readBit() |
Deprecated.
Reads a single bit.
|
| int | readBits(int numBits) |
Deprecated.
Reads up to 32 bits.
|
| int | readSignedExpGolombCodedInt() |
Deprecated.
Reads an signed Exp-Golomb-coded format integer.
|
| int | readUnsignedExpGolombCodedInt() |
Deprecated.
Reads an unsigned Exp-Golomb-coded format integer.
|
| void | reset(byte[] data, int offset, int limit) |
Deprecated.
Resets the wrapped data, limit and offset.
|
| void | skipBit() |
Deprecated.
Skips a single bit.
|
| void | skipBits(int numBits) |
Deprecated.
Skips bits and moves current reading position forward. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public ParsableNalUnitBitArray(byte[] data,
int offset,
int limit)
Deprecated.
Parameters:data - The data to wrap.offset - The byte offset in data to start reading from.limit - The byte offset of the end of the bitstream in data.
-
public void reset(byte[] data,
int offset,
int limit)
Deprecated.
Resets the wrapped data, limit and offset.
Parameters:data - The data to wrap.offset - The byte offset in data to start reading from.limit - The byte offset of the end of the bitstream in data.
-
public void skipBit()
Deprecated.
Skips a single bit.
-
public void skipBits(int numBits)
Deprecated.
Skips bits and moves current reading position forward.
Parameters:numBits - The number of bits to skip.
-
public boolean canReadBits(int numBits)
Deprecated.
Returns whether it's possible to read n bits starting from the current offset. The offset is not modified.
Parameters:numBits - The number of bits.Returns:Whether it is possible to read n bits.
-
public boolean readBit()
Deprecated.
Reads a single bit. Returns:Whether the bit is set.
-
public int readBits(int numBits)
Deprecated.
Reads up to 32 bits.
Parameters:numBits - The number of bits to read.Returns:An integer whose bottom n bits hold the read data.
-
public boolean canReadExpGolombCodedNum()
Deprecated.
Returns whether it is possible to read an Exp-Golomb-coded integer starting from the current offset. The offset is not modified. Returns:Whether it is possible to read an Exp-Golomb-coded integer.
-
public int readUnsignedExpGolombCodedInt()
Deprecated.
Reads an unsigned Exp-Golomb-coded format integer. Returns:The value of the parsed Exp-Golomb-coded integer.
-
public int readSignedExpGolombCodedInt()
Deprecated.
Reads an signed Exp-Golomb-coded format integer. Returns:The value of the parsed Exp-Golomb-coded integer.