Prepare for delete
This commit is contained in:
parent
610d70378e
commit
997162c555
4 changed files with 86 additions and 18 deletions
|
|
@ -23,10 +23,6 @@ impl <T>Entry<T> {
|
|||
Self { header: EntryHeader { is_deleted: false }, data }
|
||||
}
|
||||
|
||||
pub fn new_deleted(data: Vec<T>) -> Self {
|
||||
Self { header: EntryHeader { is_deleted: true}, data }
|
||||
}
|
||||
|
||||
// FORMAT: [EntryHeaderWithDataSize, ..sequence of data]
|
||||
pub fn encode(&self) -> Result<Vec<u8>>
|
||||
where T: Encode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue