Class KomodiaDNS::CDNSQuery::
GetSerializationSize()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: GetQuestionCountNext page: operator =    Show member index
Public Function Declared in:
DNSQuery.h

'Declaration' icon -- Shortcut to top of page. Declaration

unsigned short GetSerializationSize() const;

'Description' icon -- Shortcut to top of page. Description

Get the serialization size

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //Our size counter
    unsigned short usSize;
    usSize=0;

    //Iterate the vector
    QueryVector::const_iterator aIterator;
    aIterator=m_aQueries.begin();

    //Start the loop
    while (aIterator!=m_aQueries.end())
    {
        //Calculate the struct size
        usSize+=aIterator->sName.length()+1;
        usSize+=sizeof(unsigned short)*2;

        //Next data
        ++aIterator;
    }

    //Done
    return usSize;
}
ERROR_HANDLER_RETURN("GetSerializationSize",0)

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.