Populates the supplied buffer with the IP address as a series of 4 bytes. This is for the benefit of network functions. Pointer to the populated buffer

Return TypeFunction nameArguments
const char*hzIpaddr::AsBytes(void)

Declared in file: hzIpaddr.h
Defined in file : hzIpaddr.cpp

Function Logic:

0:START 1:pBuf items items items m_Ipa pBuf 2:Return pBuf

Function body:

const char* hzIpaddr::AsBytes (void)
{
   //  Populates the supplied buffer with the IP address as a series of 4 bytes. This is for the benefit of network functions.
   //  
   //  Argument: buf  The buffer to be populated
   //  
   //  Returns: Pointer to the populated buffer
   _hzfunc("hzIpaddr::AsBytes") ;
   char*   pBuf ;  //  Text recepticle
   pBuf = _thisfn.ScratchPad(8);
   pBuf[0]= (m_Ipa & 0xff000000)>>24;
   pBuf[1]= (m_Ipa & 0xff0000)>>16;
   pBuf[2]= (m_Ipa & 0xff00)>>8;
   pBuf[3]= m_Ipa & 0xff;
   return pBuf ;
}