ATSC3  24.10.0
Public Member Functions | Public Attributes | List of all members
CBitcalc Class Reference

#include <atsc_core_utils_bitcalc.h>

Public Member Functions

 CBitcalc (uint8_t *pData)
 Assign the data to m_pData. More...
 
virtual ~CBitcalc (void)
 Destructor for class CBitcalc. More...
 
uint32_t GetData (int32_t iBitSize)
 To get the data vased on bitsize. More...
 
uint64_t GetData64 (int32_t iBitSize)
 To get the data vased on bitsize. More...
 
uint32_t GetCurrentBitCount (void)
 To get the current bit count. More...
 
uint32_t GetCurrentCount (void)
 To get the current position. More...
 
void SetByteAlign (void)
 To set the byte as words. More...
 
uint32_t GetExpandableLen (void)
 To get the data or length of data. More...
 
void SkipData (int32_t iBitCount)
 To skip the data. More...
 
void GetByteData (int32_t iLen, uint8_t *pData)
 To get the bytes of data. More...
 
void NewSession (uint8_t *pData)
 Assign the data to m_pData. More...
 
uint32_t GetExpGolmbValue (uint32_t *pLen)
 
uint32_t GetExpGolmbValue (void)
 To get the data value. More...
 
int32_t GetSignedExpGolmbValue (void)
 To get the value based on GetExpGolmbValue() More...
 
void SetBit (uint32_t iBit)
 Set the data bit. More...
 
void SetData (int32_t iBitSize, uint32_t iData)
 Set the data based on bitsize. More...
 
void SetData64 (int32_t iBitSize, uint64_t lData)
 Set the data based on bitsize. More...
 
void SetBitWithPos (int32_t iPos, uint32_t iBit)
 Set the Data bit based on position. More...
 
void SetDataWithPos (int32_t iPos, int32_t iBitSize, uint32_t iData)
 Set the Data bytes based on position. More...
 
void SetByteData (int32_t iLen, uint8_t *pData)
 Set the Data bytes based on length. More...
 

Public Attributes

uint8_t * m_pData
 
int32_t m_BitCount
 

Detailed Description

CBitcalc

Constructor & Destructor Documentation

◆ CBitcalc()

CBitcalc::CBitcalc ( uint8_t *  pData)

Assign the data to m_pData.

Parameters
uint8_t*pData
Return values
N/A

◆ ~CBitcalc()

CBitcalc::~CBitcalc ( void  )
virtual

Destructor for class CBitcalc.

Parameters
void
Return values
virtual

Member Function Documentation

◆ GetByteData()

CBitcalc::GetByteData ( int32_t  iLen,
uint8_t *  pData 
)

To get the bytes of data.

Parameters
iLen,pData
Return values
void

◆ GetCurrentBitCount()

CBitcalc::GetCurrentBitCount ( void  )

To get the current bit count.

Parameters
void
Return values
uint32_t

◆ GetCurrentCount()

CBitcalc::GetCurrentCount ( void  )

To get the current position.

Parameters
void
Return values
uint32_t

◆ GetData()

CBitcalc::GetData ( int32_t  iBitSize)

To get the data vased on bitsize.

Parameters
iBitSize
Return values
uint32_t

◆ GetData64()

CBitcalc::GetData64 ( int32_t  iBitSize)

To get the data vased on bitsize.

Parameters
iBitSize
Return values
uint64_t

◆ GetExpandableLen()

CBitcalc::GetExpandableLen ( void  )

To get the data or length of data.

Parameters
void
Return values
uint32_t

◆ GetExpGolmbValue()

CBitcalc::GetExpGolmbValue ( void  )

To get the data value.

Parameters
pLen
Return values
uint32_t
Parameters
void
Return values
uint32_t

◆ GetSignedExpGolmbValue()

CBitcalc::GetSignedExpGolmbValue ( void  )

To get the value based on GetExpGolmbValue()

Parameters
void
Return values
int32_t

◆ NewSession()

CBitcalc::NewSession ( uint8_t *  pData)

Assign the data to m_pData.

Parameters
pData
Return values
void

◆ SetBit()

CBitcalc::SetBit ( uint32_t  iBit)

Set the data bit.

Parameters
iBit
Return values
void

◆ SetBitWithPos()

CBitcalc::SetBitWithPos ( int32_t  iPos,
uint32_t  iBit 
)

Set the Data bit based on position.

Parameters
iPos,iBit
Return values
void

◆ SetByteAlign()

CBitcalc::SetByteAlign ( void  )

To set the byte as words.

Parameters
void
Return values
void

◆ SetByteData()

CBitcalc::SetByteData ( int32_t  iLen,
uint8_t *  pData 
)

Set the Data bytes based on length.

Parameters
iLen,pData
Return values
void

◆ SetData()

CBitcalc::SetData ( int32_t  iBitSize,
uint32_t  iData 
)

Set the data based on bitsize.

Parameters
iBitSize,iData
Return values
void

◆ SetData64()

CBitcalc::SetData64 ( int32_t  iBitSize,
uint64_t  lData 
)

Set the data based on bitsize.

Parameters
iBitSize,lData
Return values
void

◆ SetDataWithPos()

CBitcalc::SetDataWithPos ( int32_t  iPos,
int32_t  iBitSize,
uint32_t  iData 
)

Set the Data bytes based on position.

Parameters
iPos,iBitSize,iData
Return values
void

◆ SkipData()

CBitcalc::SkipData ( int32_t  iBitCount)

To skip the data.

Parameters
iBitCount
Return values
void

Member Data Documentation

◆ m_BitCount

int32_t CBitcalc::m_BitCount

m_BitCount

◆ m_pData

uint8_t* CBitcalc::m_pData

m_pData


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