Exemplo n.º 1
0
unsigned32_t CGlobalRecords::GetSize(void)
{

   CUnit* pdata = NULL;
   unsigned32_t total_datasize = 0;
   bool keep = true;
   do
   {

      pdata = DumpData();
      if(pdata != NULL)
      {
         total_datasize += pdata->GetDataSize();
         delete pdata;
      }
      else
      {
         keep = false;
      }
      
   }while(keep);

   return total_datasize;


} 
Exemplo n.º 2
0
int CBinFile::Write(CUnit& data_unit)
{
	int errcode;

	errcode = write_service((const char*)data_unit.GetBuffer(), data_unit.GetDataSize());

	return errcode;
}