pub struct ZfpCodec { /* private fields */ }
Available on crate feature
zfp
only.Expand description
A zfp
codec implementation.
Implementations§
source§impl ZfpCodec
impl ZfpCodec
sourcepub const fn new_expert(expert_params: ZfpExpertParams) -> Self
pub const fn new_expert(expert_params: ZfpExpertParams) -> Self
Create a new Zfp
codec in expert mode.
sourcepub const fn new_fixed_rate(rate: f64) -> Self
pub const fn new_fixed_rate(rate: f64) -> Self
Create a new Zfp
codec in fixed rate mode.
sourcepub const fn new_fixed_precision(precision: u32) -> Self
pub const fn new_fixed_precision(precision: u32) -> Self
Create a new Zfp
codec in fixed precision mode.
sourcepub const fn new_fixed_accuracy(tolerance: f64) -> Self
pub const fn new_fixed_accuracy(tolerance: f64) -> Self
Create a new Zfp
codec in fixed accuracy mode.
sourcepub const fn new_reversible() -> Self
pub const fn new_reversible() -> Self
Create a new Zfp
codec in reversible mode.
sourcepub const fn new_with_configuration(
configuration: &ZfpCodecConfiguration
) -> Self
pub const fn new_with_configuration( configuration: &ZfpCodecConfiguration ) -> Self
Create a new Zfp
codec from configuration.
Trait Implementations§
source§impl ArrayCodecTraits for ZfpCodec
impl ArrayCodecTraits for ZfpCodec
source§fn recommended_concurrency(
&self,
_decoded_representation: &ChunkRepresentation
) -> Result<RecommendedConcurrency, CodecError>
fn recommended_concurrency( &self, _decoded_representation: &ChunkRepresentation ) -> Result<RecommendedConcurrency, CodecError>
Return the recommended concurrency for the requested decoded representation. Read more
source§fn encode(
&self,
decoded_value: Vec<u8>,
decoded_representation: &ChunkRepresentation,
_options: &CodecOptions
) -> Result<Vec<u8>, CodecError>
fn encode( &self, decoded_value: Vec<u8>, decoded_representation: &ChunkRepresentation, _options: &CodecOptions ) -> Result<Vec<u8>, CodecError>
Encode a chunk. Read more
source§fn decode(
&self,
encoded_value: Vec<u8>,
decoded_representation: &ChunkRepresentation,
_options: &CodecOptions
) -> Result<Vec<u8>, CodecError>
fn decode( &self, encoded_value: Vec<u8>, decoded_representation: &ChunkRepresentation, _options: &CodecOptions ) -> Result<Vec<u8>, CodecError>
Decode a chunk. Read more
source§fn decode_into_array_view(
&self,
encoded_value: &[u8],
decoded_representation: &ChunkRepresentation,
array_view: &ArrayView<'_>,
options: &CodecOptions
) -> Result<(), CodecError>
fn decode_into_array_view( &self, encoded_value: &[u8], decoded_representation: &ChunkRepresentation, array_view: &ArrayView<'_>, options: &CodecOptions ) -> Result<(), CodecError>
Decode into the subset of an array. Read more
source§fn partial_decode_granularity(
&self,
decoded_representation: &ChunkRepresentation
) -> ChunkShape
fn partial_decode_granularity( &self, decoded_representation: &ChunkRepresentation ) -> ChunkShape
Return the partial decode granularity. Read more
source§impl ArrayToBytesCodecTraits for ZfpCodec
impl ArrayToBytesCodecTraits for ZfpCodec
source§fn partial_decoder<'a>(
&'a self,
input_handle: Box<dyn BytesPartialDecoderTraits + 'a>,
decoded_representation: &ChunkRepresentation,
_options: &CodecOptions
) -> Result<Box<dyn ArrayPartialDecoderTraits + 'a>, CodecError>
fn partial_decoder<'a>( &'a self, input_handle: Box<dyn BytesPartialDecoderTraits + 'a>, decoded_representation: &ChunkRepresentation, _options: &CodecOptions ) -> Result<Box<dyn ArrayPartialDecoderTraits + 'a>, CodecError>
Initialise a partial decoder. Read more
source§fn async_partial_decoder<'a, 'life0, 'life1, 'async_trait>(
&'a self,
input_handle: Box<dyn AsyncBytesPartialDecoderTraits + 'a>,
decoded_representation: &'life0 ChunkRepresentation,
_options: &'life1 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncArrayPartialDecoderTraits + 'a>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn async_partial_decoder<'a, 'life0, 'life1, 'async_trait>(
&'a self,
input_handle: Box<dyn AsyncBytesPartialDecoderTraits + 'a>,
decoded_representation: &'life0 ChunkRepresentation,
_options: &'life1 CodecOptions
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncArrayPartialDecoderTraits + 'a>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Available on crate feature
async
only.Initialise an asynchronous partial decoder. Read more
source§fn compute_encoded_size(
&self,
decoded_representation: &ChunkRepresentation
) -> Result<BytesRepresentation, CodecError>
fn compute_encoded_size( &self, decoded_representation: &ChunkRepresentation ) -> Result<BytesRepresentation, CodecError>
Returns the size of the encoded representation given a size of the decoded representation. Read more
source§impl CodecTraits for ZfpCodec
impl CodecTraits for ZfpCodec
source§fn create_metadata_opt(
&self,
_options: &ArrayMetadataOptions
) -> Option<Metadata>
fn create_metadata_opt( &self, _options: &ArrayMetadataOptions ) -> Option<Metadata>
Create metadata. Read more
source§fn partial_decoder_should_cache_input(&self) -> bool
fn partial_decoder_should_cache_input(&self) -> bool
Indicates if the input to a codecs partial decoder should be cached for optimal performance.
If true, a cache may be inserted before it in a
CodecChain
partial decoder.source§fn partial_decoder_decodes_all(&self) -> bool
fn partial_decoder_decodes_all(&self) -> bool
Indicates if a partial decoder decodes all bytes from its input handle and its output should be cached for optimal performance.
If true, a cache will be inserted at some point after it in a
CodecChain
partial decoder.impl Copy for ZfpCodec
Auto Trait Implementations§
impl Freeze for ZfpCodec
impl RefUnwindSafe for ZfpCodec
impl Send for ZfpCodec
impl Sync for ZfpCodec
impl Unpin for ZfpCodec
impl UnwindSafe for ZfpCodec
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