pub struct EndianVec<Endian>where
Endian: Endianity,{ /* private fields */ }
Expand description
A Vec<u8>
with endianity metadata.
This implements the Writer
trait, which is used for all writing of DWARF sections.
Implementations§
Trait Implementations§
source§impl<Endian> Writer for EndianVec<Endian>where
Endian: Endianity,
impl<Endian> Writer for EndianVec<Endian>where
Endian: Endianity,
source§fn write_at(&mut self, offset: usize, bytes: &[u8]) -> Result<()>
fn write_at(&mut self, offset: usize, bytes: &[u8]) -> Result<()>
Write a slice at a given offset. Read more
source§fn write_address(&mut self, address: Address, size: u8) -> Result<()>
fn write_address(&mut self, address: Address, size: u8) -> Result<()>
Write an address. Read more
source§fn write_eh_pointer(
&mut self,
address: Address,
eh_pe: DwEhPe,
size: u8
) -> Result<()>
fn write_eh_pointer(
&mut self,
address: Address,
eh_pe: DwEhPe,
size: u8
) -> Result<()>
Write an address with a
.eh_frame
pointer encoding. Read moresource§fn write_eh_pointer_data(
&mut self,
val: u64,
format: DwEhPe,
size: u8
) -> Result<()>
fn write_eh_pointer_data(
&mut self,
val: u64,
format: DwEhPe,
size: u8
) -> Result<()>
Write a value with a
.eh_frame
pointer format. Read moresource§fn write_offset(&mut self, val: usize, _section: SectionId, size: u8) -> Result<()>
fn write_offset(&mut self, val: usize, _section: SectionId, size: u8) -> Result<()>
Write an offset that is relative to the start of the given section. Read more
source§fn write_offset_at(
&mut self,
offset: usize,
val: usize,
_section: SectionId,
size: u8
) -> Result<()>
fn write_offset_at(
&mut self,
offset: usize,
val: usize,
_section: SectionId,
size: u8
) -> Result<()>
Write an offset that is relative to the start of the given section. Read more
source§fn write_reference(&mut self, _symbol: usize, _size: u8) -> Result<()>
fn write_reference(&mut self, _symbol: usize, _size: u8) -> Result<()>
Write a reference to a symbol. Read more
source§fn write_u8_at(&mut self, offset: usize, val: u8) -> Result<()>
fn write_u8_at(&mut self, offset: usize, val: u8) -> Result<()>
Write a u8 at the given offset.
source§fn write_u16_at(&mut self, offset: usize, val: u16) -> Result<()>
fn write_u16_at(&mut self, offset: usize, val: u16) -> Result<()>
Write a u16 at the given offset.
source§fn write_u32_at(&mut self, offset: usize, val: u32) -> Result<()>
fn write_u32_at(&mut self, offset: usize, val: u32) -> Result<()>
Write a u32 at the given offset.
source§fn write_u64_at(&mut self, offset: usize, val: u64) -> Result<()>
fn write_u64_at(&mut self, offset: usize, val: u64) -> Result<()>
Write a u64 at the given offset.
source§fn write_udata(&mut self, val: u64, size: u8) -> Result<()>
fn write_udata(&mut self, val: u64, size: u8) -> Result<()>
Write unsigned data of the given size. Read more
source§fn write_sdata(&mut self, val: i64, size: u8) -> Result<()>
fn write_sdata(&mut self, val: i64, size: u8) -> Result<()>
Write signed data of the given size. Read more
source§fn write_udata_at(&mut self, offset: usize, val: u64, size: u8) -> Result<()>
fn write_udata_at(&mut self, offset: usize, val: u64, size: u8) -> Result<()>
Write a word of the given size at the given offset. Read more
source§fn write_initial_length(&mut self, format: Format) -> Result<InitialLengthOffset>
fn write_initial_length(&mut self, format: Format) -> Result<InitialLengthOffset>
Write an initial length according to the given DWARF format. Read more
source§fn write_initial_length_at(
&mut self,
offset: InitialLengthOffset,
length: u64,
format: Format
) -> Result<()>
fn write_initial_length_at(
&mut self,
offset: InitialLengthOffset,
length: u64,
format: Format
) -> Result<()>
Write an initial length at the given offset according to the given DWARF format. Read more