fn try_new(data: Arc<Vec<u8>>, offset: u64) -> Result<Self> {
        ensure!(
            data.len() > offset as usize,
            "Out of bound in RangeCursor: (offset={}) >= (length={})",
            offset,
            data.len(),
        );
        Ok(Self { data, offset })
    }
/// Construct new RangeCursor while ensuring that the offset is within the expected bounds
Construct new RangeCursor while ensuring that the offset is within the expected bounds
Construct new RangeCursor while ensuring that the offset is within the expected bounds
fn try_new(data: Arc<Vec<u8>>, offset: u64) -> Result<Self> {
        ensure!(
            data.len() > offset as usize,
            "Out of bound in RangeCursor: (offset={}) >= (length={})",
            offset,
            data.len(),
        );
        Ok(Self { data, offset })
    }
fn try_new ( data : Arc < Vec < u8 > > , offset : u64 ) -> Result < Self > { ensure ! ( data len ( ) offset as usize " " offset data len ( ) ) ; Ok ( Self { data , offset } ) }
Construct new RangeCursor while ensuring that the offset is within the expected bounds
Construct new RangeCursor while ensuring that the offset is within the expected bounds
data
Arc<Vec<u8>>
offset
u64
data
Arc<Vec<u8>>
offset
u64