If the supplied iterator is at the start of a valid domain name, then the supplied domain name instance will be populated with this address as the value and the supplied length will be set.
| Return Type | Function name | Arguments |
|---|---|---|
| bool | AtDomain | (hzDomain&,uint32_t&,hzChain::Iter&,) |
Declared and defined in file: hzDomain.cpp
Function Logic:
Function body:
bool AtDomain (hzDomain& dom)uint32_t& nLen, hzChain::Iter& ci,
{
// Category: Text Processing
//
// If the supplied iterator is at the start of a valid domain name, then the supplied domain name instance will be populated with this
// address as the value and the supplied length will be set.
//
// Arguments: 1) dom Reference to an domain name, populated by this function
// 2) nLen Reference to an integer set to the dom length
// 3) ci Input chain iterator
//
// Returns: True If the supplied cstr sets the domain name
// False Otherwise
_hzfunc("AtDomain") ;
dom.Clear() ;
dom = ci ;
if (!dom)
return false ;
nLen = dom.Length() ;
return true ;
}