src/backup/data_chunk.rs: add into_raw()

This commit is contained in:
Dietmar Maurer 2019-09-19 14:24:17 +02:00
parent 15bb1bba89
commit 2aba16bde1

View File

@ -34,6 +34,11 @@ impl DataChunk {
&self.raw_data
}
/// return as raw_data
pub fn into_raw(self) -> Vec<u8> {
self.raw_data
}
/// accessor to chunk digest field
pub fn digest(&self) -> &[u8; 32] {
&self.digest