retdec
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
retdec::fileformat::Asn1Item Class Reference

#include <asn1.h>

Inheritance diagram for retdec::fileformat::Asn1Item:
Inheritance graph
[legend]
Collaboration diagram for retdec::fileformat::Asn1Item:
Collaboration graph
[legend]

Public Member Functions

virtual ~Asn1Item ()=default
 
std::size_t getLength () const
 
const std::vector< std::uint8_t > & getData () const
 
std::size_t getContentLength () const
 
std::vector< std::uint8_t > getContentData () const
 
bool isNull () const
 
bool isBitString () const
 
bool isOctetString () const
 
bool isSequence () const
 
bool isObject () const
 
bool isContextSpecific () const
 

Static Public Member Functions

static std::shared_ptr< Asn1Itemparse (const std::vector< std::uint8_t > &data)
 

Protected Member Functions

 Asn1Item (Asn1Type type, const std::vector< std::uint8_t > &data)
 

Protected Attributes

Asn1Type _type
 
std::vector< std::uint8_t > _data
 

Private Member Functions

void init ()
 

Private Attributes

std::vector< std::uint8_t >::const_iterator _contentBegin
 
std::size_t _contentLength
 

Constructor & Destructor Documentation

◆ ~Asn1Item()

virtual retdec::fileformat::Asn1Item::~Asn1Item ( )
virtualdefault

◆ Asn1Item()

retdec::fileformat::Asn1Item::Asn1Item ( Asn1Type  type,
const std::vector< std::uint8_t > &  data 
)
protected

Member Function Documentation

◆ getContentData()

std::vector< std::uint8_t > retdec::fileformat::Asn1Item::getContentData ( ) const

◆ getContentLength()

std::size_t retdec::fileformat::Asn1Item::getContentLength ( ) const

◆ getData()

const std::vector< std::uint8_t > & retdec::fileformat::Asn1Item::getData ( ) const

◆ getLength()

std::size_t retdec::fileformat::Asn1Item::getLength ( ) const

◆ init()

void retdec::fileformat::Asn1Item::init ( )
private

◆ isBitString()

bool retdec::fileformat::Asn1Item::isBitString ( ) const

◆ isContextSpecific()

bool retdec::fileformat::Asn1Item::isContextSpecific ( ) const

◆ isNull()

bool retdec::fileformat::Asn1Item::isNull ( ) const

◆ isObject()

bool retdec::fileformat::Asn1Item::isObject ( ) const

◆ isOctetString()

bool retdec::fileformat::Asn1Item::isOctetString ( ) const

◆ isSequence()

bool retdec::fileformat::Asn1Item::isSequence ( ) const

◆ parse()

std::shared_ptr< Asn1Item > retdec::fileformat::Asn1Item::parse ( const std::vector< std::uint8_t > &  data)
static

Member Data Documentation

◆ _contentBegin

std::vector<std::uint8_t>::const_iterator retdec::fileformat::Asn1Item::_contentBegin
private

◆ _contentLength

std::size_t retdec::fileformat::Asn1Item::_contentLength
private

◆ _data

std::vector<std::uint8_t> retdec::fileformat::Asn1Item::_data
protected

◆ _type

Asn1Type retdec::fileformat::Asn1Item::_type
protected

The documentation for this class was generated from the following files: