Return the value of the uchar currently pointed to by the iterator Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| unsigned char | hzXbuf::Iter::operator* | (void) |
Declared in file: hzXbuf.h
Defined in file : hzXbuf.cpp
Function Logic:
Function body:
unsigned char hzXbuf::Iter::operator* (void)
{
// Return the value of the uchar currently pointed to by the iterator
//
// Arguments: None
//
// Returns: >0 The current character of the chain iterator
// 0 If the chain iterator is at the end of the chan or the chain is empty
_hzfunc("hzXbuf::Iter::operator*") ;
_xblk* zp ; // Block pointer
if (!m_block)
return m_cDefault ;
zp = (_xblk*) m_block ;
if (!zp)
Fatal("Cannot access block %d\n", m_block) ;
if (!zp->Next() && m_nOset == zp->xize)
return m_cDefault ;
if (m_nOset >&eq; zp->xize)
Fatal("Have block %p next %p oset %d size %d\n", m_block, zp->Next(), m_nOset, zp->xize) ;
return zp->m_Data[m_nOset] ;
}