Packagecom.adobe.mediacore.utils.scte35
Classpublic final class SCTE35ByteArray
InheritanceSCTE35ByteArray Inheritance Object

SCTE 35 byte array implementation - allows accessing of SCTE 35 data stored at bit and byte level.



Public Methods
 MethodDefined 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
Constructor Detail
SCTE35ByteArray()Constructor
public function SCTE35ByteArray(byteArray:ByteArray)

Default constructor.

Parameters
byteArray:ByteArray — The byte array containing the SCTE35 payload.
Method Detail
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

Returns
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.

Returns
ByteArray — a new ByteArray containing the bytes read.