|
SASC-NG
DVBSoftCAM
|
#include <section.h>
Inheritance diagram for SI::NIT:Classes | |
| class | TransportStream |
Public Member Functions | |
| NIT (const unsigned char *data, bool doCopy=true) | |
| NIT () | |
| int | getNetworkId () const |
Public Attributes | |
| DescriptorLoop | commonDescriptors |
| StructureLoop< TransportStream > | transportStreamLoop |
Protected Member Functions | |
| virtual void | Parse () |
| SI::NIT::NIT | ( | const unsigned char * | data, |
| bool | doCopy = true |
||
| ) | [inline] |
Definition at line 93 of file section.h.
: NumberedSection(data, doCopy) {}
| int SI::NIT::getNetworkId | ( | ) | const |
Definition at line 89 of file section.c.
References HILO.
Referenced by SI::BAT::getBouquetId().
{
return HILO(s->network_id);
}
| void SI::NIT::Parse | ( | ) | [protected, virtual] |
Implements SI::Parsable.
Definition at line 93 of file section.c.
References SI::Object::data, HILO, and SI::CharArray::setPointerAndOffset().
{
int offset=0;
data.setPointerAndOffset<const nit>(s, offset);
commonDescriptors.setDataAndOffset(data+offset, HILO(s->network_descriptor_length), offset);
const nit_mid *mid;
data.setPointerAndOffset<const nit_mid>(mid, offset);
transportStreamLoop.setData(data+offset, HILO(mid->transport_stream_loop_length));
}