/* See related method above */ rose_addr_t SgAsmGenericSection::write(std::ostream &f, rose_addr_t offset, const SgFileContentList &buf) const { if (0==buf.size()) return 0; return write(f, offset, buf.size(), &(buf[0])); }
/* String output for SgFileContentList */ std::string SgAsmExecutableFileFormat::hexdump(rose_addr_t base_addr, const std::string &prefix, const SgFileContentList &data, bool multiline) { if (data.empty()) return ""; HexdumpFormat fmt; fmt.multiline = multiline; fmt.prefix = prefix.c_str(); return hexdump(base_addr, &(data[0]), data.size(), fmt); }
/* Stream output for SgFileContentList */ void SgAsmExecutableFileFormat::hexdump(std::ostream &f, rose_addr_t base_addr, const std::string &prefix, const SgFileContentList &data, bool multiline) { if (!data.empty()) { HexdumpFormat fmt; fmt.multiline = multiline; fmt.prefix = prefix.c_str(); hexdump(f, base_addr, &(data[0]), data.size(), fmt); } }