Struct cyfs_bdt::ndn::ChunkListDesc
source · pub struct ChunkListDesc(_);Implementations§
source§impl ChunkListDesc
impl ChunkListDesc
pub fn from_chunk(chunk: ChunkId) -> Self
pub fn from_chunks(chunk_list: &Vec<ChunkId>) -> Self
pub fn from_file(file: &File) -> BuckyResult<Self>
pub fn chunks(&self) -> &[ChunkId]
pub fn index_of(&self, chunk: &ChunkId) -> Option<&Vec<usize>>
pub fn offset_of(&self, index: usize) -> Option<u64>
pub fn total_len(&self) -> u64
pub fn range_of(&self, range: Range<u64>) -> Vec<(usize, Range<u64>)> ⓘ
Trait Implementations§
source§impl Clone for ChunkListDesc
impl Clone for ChunkListDesc
source§fn clone(&self) -> ChunkListDesc
fn clone(&self) -> ChunkListDesc
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more