Struct zarrs::array::codec::ByteIntervalPartialDecoder
source · pub struct ByteIntervalPartialDecoder<'a> { /* private fields */ }
Expand description
A partial decoder for a byte interval of a BytesPartialDecoderTraits
partial decoder.
Modifies byte range requests to a specific byte interval in an inner bytes partial decoder.
Implementations§
source§impl<'a> ByteIntervalPartialDecoder<'a>
impl<'a> ByteIntervalPartialDecoder<'a>
sourcepub fn new(
inner: &'a dyn BytesPartialDecoderTraits,
byte_offset: ByteOffset,
byte_length: ByteLength
) -> Self
pub fn new( inner: &'a dyn BytesPartialDecoderTraits, byte_offset: ByteOffset, byte_length: ByteLength ) -> Self
Create a new byte interval partial decoder.
Trait Implementations§
source§impl<'a> BytesPartialDecoderTraits for ByteIntervalPartialDecoder<'a>
impl<'a> BytesPartialDecoderTraits for ByteIntervalPartialDecoder<'a>
source§fn partial_decode(
&self,
byte_ranges: &[ByteRange],
options: &CodecOptions
) -> Result<Option<Vec<Vec<u8>>>, CodecError>
fn partial_decode( &self, byte_ranges: &[ByteRange], options: &CodecOptions ) -> Result<Option<Vec<Vec<u8>>>, CodecError>
Partially decode bytes. Read more
source§fn partial_decode_concat(
&self,
decoded_regions: &[ByteRange],
options: &CodecOptions
) -> Result<Option<Vec<u8>>, CodecError>
fn partial_decode_concat( &self, decoded_regions: &[ByteRange], options: &CodecOptions ) -> Result<Option<Vec<u8>>, CodecError>
Partially decode bytes and concatenate. Read more
source§fn decode(&self, options: &CodecOptions) -> Result<MaybeBytes, CodecError>
fn decode(&self, options: &CodecOptions) -> Result<MaybeBytes, CodecError>
Decode all bytes. Read more
Auto Trait Implementations§
impl<'a> Freeze for ByteIntervalPartialDecoder<'a>
impl<'a> !RefUnwindSafe for ByteIntervalPartialDecoder<'a>
impl<'a> Send for ByteIntervalPartialDecoder<'a>
impl<'a> Sync for ByteIntervalPartialDecoder<'a>
impl<'a> Unpin for ByteIntervalPartialDecoder<'a>
impl<'a> !UnwindSafe for ByteIntervalPartialDecoder<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more