void slice_layout::write(generic_file & f) const { char tmp = older_sar_than_v8 ? OLDER_THAN_V8 : V8; first_size.dump(f); other_size.dump(f); first_slice_header.dump(f); other_slice_header.dump(f); f.write(&tmp, 1); }
void storage::dump(generic_file & f) const { const struct cellule *ptr = first; while(ptr != NULL) { f.write((const char *)(ptr->data), ptr->size); ptr = ptr->next; } }
void filesystem_specific_attribute_list::write(generic_file & f) const { infinint size = fsa.size(); vector<filesystem_specific_attribute *>::const_iterator it = fsa.begin(); size.dump(f); while(it != fsa.end()) { string tmp; if(*it == NULL) throw SRC_BUG; tmp = family_to_signature((*it)->get_family()); f.write(tmp.c_str(), tmp.size()); tmp = nature_to_signature((*it)->get_nature()); f.write(tmp.c_str(), tmp.size()); (*it)->write(f); ++it; } }
void compressor::lzo_block_header::dump(generic_file & f) { f.write(&type, 1); size.dump(f); }