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; }
int CBinFile::Write(CUnit& data_unit) { int errcode; errcode = write_service((const char*)data_unit.GetBuffer(), data_unit.GetDataSize()); return errcode; }