Package | com.adobe.mediacore.utils.scte35 |
Class | public final class SCTE35ByteArray |
Inheritance | SCTE35ByteArray ![]() |
Method | Defined By | ||
---|---|---|---|
SCTE35ByteArray(byteArray:ByteArray)
Default constructor. | SCTE35ByteArray | ||
readBitsAsNumber(count:uint):Number
Reads a number from the internal byte array and converts it to a Number. | SCTE35ByteArray | ||
readBytes(count:int):ByteArray
Reads the specified number of bytes from the internal byte array and returns
them as a new byte array. | SCTE35ByteArray |
SCTE35ByteArray | () | Constructor |
public function SCTE35ByteArray(byteArray:ByteArray)
Default constructor.
ParametersbyteArray:ByteArray — The byte array containing the SCTE35 payload.
|
readBitsAsNumber | () | method |
public function readBitsAsNumber(count:uint):Number
Reads a number from the internal byte array and converts it to a Number. As the bit operation can be quite complex we will use a couple of internal optimizations - if we are byte aligned and we need to read 8 bits we are going to return the current byte - if we need to read just one bit, - if we need to read data inside the current byte - if we need to read data across multiple bytes
Parameters
count:uint — the number of bits we need to read from the current byte array
|
Number — a Number created from the bits read.
|
readBytes | () | method |
public function readBytes(count:int):ByteArray
Reads the specified number of bytes from the internal byte array and returns them as a new byte array.
Parameters
count:int — The number of bytes to be read.
|
ByteArray — a new ByteArray containing the bytes read.
|