mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-18 06:03:59 +03:00
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
|
||||
}
|
||||
|
||||
/// 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user