コード例 #1
0
ファイル: GenericSection.C プロジェクト: Sciumo/rose
/** Reads a string from the file. The string begins at the specified absolute file offset and continues until the first NUL
 *  byte or end of file is reached. However, if @p strict is set (the default) and we reach the end-of-file then an
 *  SgAsmExecutableFileFormat::ShortRead exception is thrown. */
std::string
SgAsmGenericSection::read_content_str(rose_addr_t abs_offset, bool strict)
{
    SgAsmGenericFile *file = get_file();
    ROSE_ASSERT(file!=NULL);
    return file->read_content_str(abs_offset, strict);
}
コード例 #2
0
ファイル: GenericSection.C プロジェクト: Sciumo/rose
/** Reads a string from the file. The string begins at the specified virtual address and continues until the first NUL byte or
 *  until we reach an address that is not mapped. However, if @p strict is set (the default) and we reach an unmapped address
 *  then an MemoryMap::NotMapped exception is thrown. The @p map defines the mapping from virtual addresses to file offsets;
 *  if @p map is NULL then the map defined in the underlying file is used. */
std::string
SgAsmGenericSection::read_content_str(const MemoryMap *map, rose_addr_t start_va, bool strict)
{
    SgAsmGenericFile *file = get_file();
    ROSE_ASSERT(file!=NULL);
    return file->read_content_str(map, start_va, strict);
}