Makes this chain equal to the supplied chain operand. Any pre-existing contents are disregarded.
| Return Type | Function name | Arguments |
|---|---|---|
| hzXbuf& | hzXbuf::operator= | (hzXbuf&,) |
Declared in file: hzXbuf.h
Defined in file : hzXbuf.cpp
Function Logic:
Function body:
hzXbuf& hzXbuf::operator= (hzXbuf& op)
{
// Makes this chain equal to the supplied chain operand. Any pre-existing contents are disregarded.
//
// Arguments: 1) op The supplied chain
//
// Returns: Reference to this chain
_hzfunc("hzXbuf::operator=(hzXbuf)") ;
Clear() ;
if (op.mx)
{
if (_hzGlobal_MT)
__sync_add_and_fetch((uint32_t*)&(op.mx->m_copy), 1);
else
op.mx->m_copy++ ;
}
mx = op.mx ;
return *this ;
}