Trait solana_rbpf::elf_parser_glue::ElfSectionHeader
source · pub trait ElfSectionHeader {
// Required methods
fn sh_name(&self) -> Elf64Word;
fn sh_addr(&self) -> Elf64Addr;
fn sh_offset(&self) -> Elf64Off;
fn sh_size(&self) -> Elf64Xword;
fn sh_flags(&self) -> Elf64Xword;
fn sh_type(&self) -> Elf64Word;
// Provided methods
fn is_writable(&self) -> bool { ... }
fn file_range(&self) -> Option<Range<usize>> { ... }
fn vm_range(&self) -> Range<Elf64Addr> { ... }
}
Expand description
ELF section header.
Required Methods§
sourcefn sh_size(&self) -> Elf64Xword
fn sh_size(&self) -> Elf64Xword
Returns the section size.
sourcefn sh_flags(&self) -> Elf64Xword
fn sh_flags(&self) -> Elf64Xword
Returns the section flags.
Provided Methods§
sourcefn is_writable(&self) -> bool
fn is_writable(&self) -> bool
Returns whether the section is writable.
sourcefn file_range(&self) -> Option<Range<usize>>
fn file_range(&self) -> Option<Range<usize>>
Returns the byte range the section spans in the file.