vdr
2.2.0
|
#include <util.h>
Classes | |
class | Data |
class | DataForeignData |
class | DataOwnData |
Public Member Functions | |
CharArray () | |
CharArray (const CharArray &source) | |
CharArray & | operator= (const CharArray &source) |
~CharArray () | |
void | assign (const unsigned char *data, int size, bool doCopy=true) |
bool | operator== (const char *string) const |
bool | operator== (const CharArray &other) const |
CharArray | operator+ (const int offset) const |
const unsigned char * | getData () const |
const unsigned char * | getData (int offset) const |
template<typename T > | |
const T * | getData () const |
template<typename T > | |
const T * | getData (int offset) const |
template<typename T > | |
void | setPointerAndOffset (const T *&p, int &offset) const |
unsigned char | operator[] (const int index) const |
int | getLength () const |
u_int16_t | TwoBytes (const int index) const |
u_int32_t | FourBytes (const int index) const |
bool | isValid () const |
bool | checkSize (int offset) |
void | addOffset (int offset) |
Private Attributes | |
Data * | data_ |
int | off |
SI::CharArray::CharArray | ( | const CharArray & | source | ) |
Definition at line 30 of file util.c.
References SI::CharArray::Data::count_, and data_.
SI::CharArray::~CharArray | ( | ) |
Definition at line 23 of file util.c.
References SI::CharArray::Data::count_, and data_.
|
inline |
Definition at line 65 of file util.h.
References off.
Referenced by SI::StructureLoop< SI::MHP_ApplicationDescriptor::Profile >::getNext(), and SI::StructureLoop< SI::MHP_ApplicationDescriptor::Profile >::getNextAsPointer().
void SI::CharArray::assign | ( | const unsigned char * | data, |
int | size, | ||
bool | doCopy = true |
||
) |
Definition at line 50 of file util.c.
References SI::CharArray::Data::assign(), SI::CharArray::Data::count_, and data_.
Referenced by SI::Object::setData().
|
inline |
Definition at line 63 of file util.h.
References data_, off, and SI::CharArray::Data::valid.
Referenced by SI::Object::checkSize().
|
inline |
Definition at line 60 of file util.h.
References SI::CharArray::Data::data, data_, SI::CharArray::Data::FourBytes(), and off.
Referenced by SI::AIT::Application::getOrganisationId(), and SI::TypeLoop< SixteenBit >::operator[]().
|
inline |
Definition at line 51 of file util.h.
References SI::CharArray::Data::data, data_, and off.
Referenced by cCaDescriptors::AddCaDescriptor(), cEIT::cEIT(), SI::DescriptorLoop::createDescriptor(), SI::String::decodeText(), SI::NumberedSection::getCurrentNextIndicator(), SI::Descriptor::getDescriptor(), SI::Descriptor::getDescriptorTag(), SI::DescriptorLoop::getDescriptorTags(), SI::NumberedSection::getLastSectionNumber(), SI::Section::getLength(), SI::Descriptor::getLength(), SI::DescriptorLoop::getNext(), SI::DescriptorLoop::getNumberOfDescriptors(), SI::NumberedSection::getSectionNumber(), SI::Section::getTableId(), SI::NumberedSection::getTableIdExtension(), SI::NumberedSection::getVersionNumber(), SI::CRCSection::isCRCValid(), SI::PAT::Association::Parse(), SI::TimeShiftedEventDescriptor::Parse(), SI::ContentDescriptor::Nibble::Parse(), SI::ParentalRatingDescriptor::Rating::Parse(), SI::TeletextDescriptor::Teletext::Parse(), SI::CaDescriptor::Parse(), SI::StreamIdentifierDescriptor::Parse(), SI::CarouselIdentifierDescriptor::Parse(), SI::ServiceListDescriptor::Service::Parse(), SI::TDT::Parse(), SI::SatelliteDeliverySystemDescriptor::Parse(), SI::RST::RunningInfo::Parse(), SI::CableDeliverySystemDescriptor::Parse(), SI::TerrestrialDeliverySystemDescriptor::Parse(), SI::NVODReferenceDescriptor::Service::Parse(), SI::TimeShiftedServiceDescriptor::Parse(), SI::PrivateDataSpecifierDescriptor::Parse(), SI::SubtitlingDescriptor::Subtitling::Parse(), SI::ServiceMoveDescriptor::Parse(), SI::LocalTimeOffsetDescriptor::LocalTimeOffset::Parse(), SI::LinkageDescriptor::Parse(), SI::ISO639LanguageDescriptor::Language::Parse(), SI::S2SatelliteDeliverySystemDescriptor::Parse(), SI::LogicalChannelDescriptor::LogicalChannel::Parse(), SI::HdSimulcastLogicalChannelDescriptor::HdSimulcastLogicalChannel::Parse(), SI::PremiereContentTransmissionDescriptor::StartDayEntry::StartTimeEntry::Parse(), SI::PremiereContentTransmissionDescriptor::StartDayEntry::Parse(), SI::PremiereContentTransmissionDescriptor::Parse(), SI::ApplicationSignallingDescriptor::ApplicationEntryDescriptor::Parse(), SI::MHP_ApplicationDescriptor::Profile::Parse(), SI::MHP_ApplicationNameDescriptor::NameEntry::Parse(), SI::MHP_TransportProtocolDescriptor::UrlExtensionEntry::Parse(), SI::MHP_DVBJApplicationDescriptor::ApplicationEntry::Parse(), SI::RegistrationDescriptor::Parse(), SI::AVCDescriptor::Parse(), and setPointerAndOffset().
|
inline |
Definition at line 52 of file util.h.
References SI::CharArray::Data::data, data_, and off.
|
inline |
Definition at line 53 of file util.h.
References SI::CharArray::Data::data, data_, and off.
|
inline |
Definition at line 54 of file util.h.
References SI::CharArray::Data::data, data_, and off.
|
inline |
Definition at line 58 of file util.h.
References data_, and SI::CharArray::Data::size.
Referenced by cCaDescriptors::AddCaDescriptor(), and cEIT::cEIT().
|
inline |
Definition at line 62 of file util.h.
References data_, and SI::CharArray::Data::valid.
CharArray SI::CharArray::operator+ | ( | const int | offset | ) | const |
Definition at line 35 of file util.c.
References SI::CharArray::Data::count_, data_, and off.
bool SI::CharArray::operator== | ( | const char * | string | ) | const |
Definition at line 64 of file util.c.
References SI::CharArray::Data::data, data_, and SI::CharArray::Data::size.
bool SI::CharArray::operator== | ( | const CharArray & | other | ) | const |
Definition at line 71 of file util.c.
References SI::CharArray::Data::data, data_, and SI::CharArray::Data::size.
|
inline |
Definition at line 57 of file util.h.
References SI::CharArray::Data::data, data_, and off.
|
inline |
Definition at line 56 of file util.h.
References getData().
Referenced by SI::ShortEventDescriptor::Parse(), SI::ExtendedEventDescriptor::Item::Parse(), SI::PAT::Parse(), SI::ExtendedEventDescriptor::Parse(), SI::PMT::Stream::Parse(), SI::PMT::Parse(), SI::TSDT::Parse(), SI::NIT::TransportStream::Parse(), SI::NIT::Parse(), SI::SDT::Service::Parse(), SI::SDT::Parse(), SI::CaDescriptor::Parse(), SI::EIT::Event::Parse(), SI::EIT::Parse(), SI::TOT::Parse(), SI::RST::Parse(), SI::AIT::Application::Parse(), SI::AIT::Parse(), SI::ServiceDescriptor::Parse(), SI::PremiereCIT::Parse(), SI::ComponentDescriptor::Parse(), SI::FrequencyListDescriptor::Parse(), SI::ContentIdentifierDescriptor::Identifier::Parse(), SI::MultilingualNameDescriptor::Name::Parse(), SI::MultilingualComponentDescriptor::Parse(), SI::MultilingualServiceNameDescriptor::Name::Parse(), SI::LinkageDescriptor::Parse(), SI::PDCDescriptor::Parse(), SI::AncillaryDataDescriptor::Parse(), SI::S2SatelliteDeliverySystemDescriptor::Parse(), SI::ExtensionDescriptor::Parse(), SI::T2DeliverySystemDescriptor::Parse(), SI::MHP_ApplicationDescriptor::Parse(), SI::MHP_TransportProtocolDescriptor::Parse(), SI::MHP_DVBJApplicationLocationDescriptor::Parse(), SI::MHP_ApplicationIconsDescriptor::Parse(), SI::MHP_SimpleApplicationLocationDescriptor::Parse(), SI::RegistrationDescriptor::Parse(), and SI::AVCDescriptor::Parse().
|
inline |
Definition at line 59 of file util.h.
References SI::CharArray::Data::data, data_, off, and SI::CharArray::Data::TwoBytes().
Referenced by SI::TypeLoop< SixteenBit >::operator[]().
|
private |
Definition at line 120 of file util.h.
Referenced by assign(), CharArray(), checkSize(), FourBytes(), getData(), getLength(), isValid(), operator=(), operator==(), operator[](), TwoBytes(), and ~CharArray().
|
private |
Definition at line 121 of file util.h.
Referenced by addOffset(), checkSize(), FourBytes(), getData(), operator+(), operator=(), operator[](), and TwoBytes().