Struct rdiff::Insert
[−]
[src]
pub struct Insert { /* fields omitted */ }
Represents an operation to insert bytes at a particular position into a file
Methods
impl Insert
[src]
fn get_position(&self) -> usize
Gets the byte position of this insert operation in its file
fn get_data(&self) -> &Vec<u8>
Gets the data this insert operation will insert
fn compress_to<W: Write>(&self, writer: &mut W) -> Result<()>
Compress this operation and write to writer
. The output can then be expanded
back into an equivilent operation using expand_from()
fn expand_from<R: Read>(reader: &mut R) -> Result<Insert>
Expand this operation from previously compressed data in reader
. The data in reader
should have been written using compress_to()
Trait Implementations
impl PartialEq for Insert
[src]
fn eq(&self, __arg_0: &Insert) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Insert) -> bool
This method tests for !=
.