![]() |
GetSerializationSize() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: DNSQuery.h |
Declarationunsigned short GetSerializationSize() const;
DescriptionGet the serialization size
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
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. |