Struct rdiff::Delete
[−]
[src]
pub struct Delete { /* fields omitted */ }
Represents an operation to delete a certain number of bytes at a particular position in a file
Methods
impl Delete
[src]
fn get_position(&self) -> usize
Gets the byte position of this delete operation in its file
fn get_length(&self) -> usize
Gets the length in bytes of this delete operation
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<Delete>
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 Delete
[src]
fn eq(&self, __arg_0: &Delete) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Delete) -> bool
This method tests for !=
.