src/backup/data_chunk.rs: add into_raw()
This commit is contained in:
parent
15bb1bba89
commit
2aba16bde1
@ -34,6 +34,11 @@ impl DataChunk {
|
|||||||
&self.raw_data
|
&self.raw_data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// return as raw_data
|
||||||
|
pub fn into_raw(self) -> Vec<u8> {
|
||||||
|
self.raw_data
|
||||||
|
}
|
||||||
|
|
||||||
/// accessor to chunk digest field
|
/// accessor to chunk digest field
|
||||||
pub fn digest(&self) -> &[u8; 32] {
|
pub fn digest(&self) -> &[u8; 32] {
|
||||||
&self.digest
|
&self.digest
|
||||||
|
Loading…
Reference in New Issue
Block a user