diff --git a/src/backup/data_chunk.rs b/src/backup/data_chunk.rs index cc2f6321..c9d0378f 100644 --- a/src/backup/data_chunk.rs +++ b/src/backup/data_chunk.rs @@ -34,6 +34,11 @@ impl DataChunk { &self.raw_data } + /// return as raw_data + pub fn into_raw(self) -> Vec { + self.raw_data + } + /// accessor to chunk digest field pub fn digest(&self) -> &[u8; 32] { &self.digest