zarrs_codec 0.2.1

The codec API for the zarrs crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::borrow::Cow;

#[cfg(doc)]
use super::ArrayBytes;

/// Raw array element bytes.
///
/// These can represent:
/// - [`ArrayBytes::Fixed`]: fixed length elements of an array in C-contiguous order,
/// - [`ArrayBytes::Variable`]: variable length elements of an array in C-contiguous order with padding permitted,
/// - Encoded array bytes after an array to bytes or bytes to bytes codecs.
pub type ArrayBytesRaw<'a> = Cow<'a, [u8]>;