[−][src]Type Definition libanu::change::Change3
type Change3 = LocalChange3<Local>;
Implementations
impl Change3
[src]
impl Change3
[src]
impl Change3
[src]
pub fn size_no_contents<R: Read + Seek>(r: &mut R) -> Result<u64, Error>
[src]
pub fn serialize<W: Write>(&self, w: W) -> Result<Hash, Error>
[src]
Serialise the change as a file named "dir
, where "
pub fn check_from_buffer(buf: &[u8], hash: &Hash) -> Result<(), Error>
[src]
Deserialise a change from the file given as input file
.
pub fn deserialize(file: &str, hash: Option<&Hash>) -> Result<Self, Error>
[src]
Deserialise a change from the file given as input file
.
pub fn hash(&self) -> Result<Hash, Error>
[src]
Compute the hash of this change. If the zstd
feature is
enabled, it is probably more efficient to serialise the change
(using the serialize
method) at the same time, which also
returns the hash.