Trait positioned_io::WriteIntAt
[−]
[src]
pub trait WriteIntAt: WriteAt { fn write_u16_at(&mut self, pos: u64, n: u16) -> Result<()>; fn write_i16_at(&mut self, pos: u64, n: i16) -> Result<()>; fn write_u32_at(&mut self, pos: u64, n: u32) -> Result<()>; fn write_i32_at(&mut self, pos: u64, n: i32) -> Result<()>; fn write_u64_at(&mut self, pos: u64, n: u64) -> Result<()>; fn write_i64_at(&mut self, pos: u64, n: i64) -> Result<()>; fn write_uint_at(&mut self, pos: u64, n: u64, nbytes: usize) -> Result<()>; fn write_int_at(&mut self, pos: u64, n: i64, nbytes: usize) -> Result<()>; fn write_f32_at(&mut self, pos: u64, n: f32) -> Result<()>; fn write_f64_at(&mut self, pos: u64, n: f64) -> Result<()>; }
Trait for writing positioned integers.
Does not require an endianness parameter, so it's useful for trait objects.
Required Methods
fn write_u16_at(&mut self, pos: u64, n: u16) -> Result<()>
Writes an unsigned 16-bit integer to an offset.
fn write_i16_at(&mut self, pos: u64, n: i16) -> Result<()>
Writes a signed 16-bit integer to an offset.
fn write_u32_at(&mut self, pos: u64, n: u32) -> Result<()>
Writes an unsigned 32-bit integer to an offset.
fn write_i32_at(&mut self, pos: u64, n: i32) -> Result<()>
Writes a signed 32-bit integer to an offset.
fn write_u64_at(&mut self, pos: u64, n: u64) -> Result<()>
Writes an unsigned 64-bit integer to an offset.
fn write_i64_at(&mut self, pos: u64, n: i64) -> Result<()>
Writes a signed 64-bit integer to an offset.
fn write_uint_at(&mut self, pos: u64, n: u64, nbytes: usize) -> Result<()>
Writes an unsigned nbytes
-bit integer to an offset.
fn write_int_at(&mut self, pos: u64, n: i64, nbytes: usize) -> Result<()>
Writes a signed nbytes
-bit integer to an offset.
fn write_f32_at(&mut self, pos: u64, n: f32) -> Result<()>
Writes a single-precision floating point number to an offset.
fn write_f64_at(&mut self, pos: u64, n: f64) -> Result<()>
Writes a double-precision floating point number to an offset.