Struct elfkit::section::Section [−][src]
pub struct Section { pub header: SectionHeader, pub name: Vec<u8>, pub content: SectionContent, pub addrlock: bool, }
Fields
header: SectionHeader
name: Vec<u8>
content: SectionContent
addrlock: bool
Methods
impl Section
[src]
impl Section
pub fn size(&self, eh: &Header) -> usize
[src]
pub fn size(&self, eh: &Header) -> usize
pub fn new(
name: Vec<u8>,
shtype: SectionType,
flags: SectionFlags,
content: SectionContent,
link: u32,
info: u32
) -> Section
[src]
pub fn new(
name: Vec<u8>,
shtype: SectionType,
flags: SectionFlags,
content: SectionContent,
link: u32,
info: u32
) -> Section
pub fn sync(
&mut self,
eh: &Header,
linked: Option<&mut SectionContent>
) -> Result<(), Error>
[src]
pub fn sync(
&mut self,
eh: &Header,
linked: Option<&mut SectionContent>
) -> Result<(), Error>
pub fn from_reader<T>(
&mut self,
io: T,
linked: Option<&Section>,
eh: &Header
) -> Result<(), Error> where
T: Read + Seek,
[src]
pub fn from_reader<T>(
&mut self,
io: T,
linked: Option<&Section>,
eh: &Header
) -> Result<(), Error> where
T: Read + Seek,
pub fn to_writer<R>(&self, io: R, eh: &Header) -> Result<(), Error> where
R: Write + Seek,
[src]
pub fn to_writer<R>(&self, io: R, eh: &Header) -> Result<(), Error> where
R: Write + Seek,
Trait Implementations
impl Debug for Section
[src]
impl Debug for Section
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Section
[src]
impl Default for Section
impl Clone for Section
[src]
impl Clone for Section