Skip to main content

Crate tensogram

Crate tensogram 

Source

Re-exports§

pub use decode::DecodeOptions;
pub use decode::decode;
pub use decode::decode_descriptors;
pub use decode::decode_metadata;
pub use decode::decode_object;
pub use decode::decode_range;
pub use decode::decode_range_from_payload;
pub use dtype::Dtype;
pub use encode::EncodeOptions;
pub use encode::encode;
pub use encode::encode_pre_encoded;
pub use error::Result;
pub use error::TensogramError;
pub use file::TensogramFile;
pub use framing::scan;
pub use framing::scan_file;
pub use hash::HashAlgorithm;
pub use hash::compute_hash;
pub use hash::verify_hash;
pub use iter::FileMessageIter;
pub use iter::MessageIter;
pub use iter::ObjectIter;
pub use iter::messages;
pub use iter::objects;
pub use iter::objects_metadata;
pub use metadata::RESERVED_KEY;
pub use metadata::compute_common;
pub use metadata::verify_canonical_cbor;
pub use pipeline::DataPipeline;
pub use pipeline::apply_pipeline;
pub use streaming::StreamingEncoder;
pub use types::DataObjectDescriptor;
pub use types::DecodedObject;
pub use types::GlobalMetadata;
pub use types::HashDescriptor;
pub use types::HashFrame;
pub use types::IndexFrame;
pub use validate::FileIssue;
pub use validate::FileValidationReport;
pub use validate::IssueCode;
pub use validate::IssueSeverity;
pub use validate::ValidateOptions;
pub use validate::ValidationIssue;
pub use validate::ValidationLevel;
pub use validate::ValidationReport;
pub use validate::validate_buffer;
pub use validate::validate_file;
pub use validate::validate_message;
pub use wire::FrameType;
pub use wire::MessageFlags;
pub use remote::is_remote_url;

Modules§

decode
dtype
encode
error
file
framing
hash
iter
Iterator types for lazy traversal of messages and objects.
metadata
pipeline
Shared encoding/filter/compression pipeline helpers for importers.
remote
Remote object store backend for TensogramFile.
streaming
types
validate
Validation of tensogram messages and files.
wire

Enums§

ByteOrder
CompressionBackend
Selects which backend to use when both FFI and pure-Rust implementations are compiled in for the same codec (szip or zstd).

Constants§

DEFAULT_PARALLEL_THRESHOLD_BYTES
Default threshold below which the library runs sequentially even when threads > 0. Chosen to be well above the per-call rayon pool construction cost (~10 µs) but small enough not to starve encode paths that want parallelism.
ENV_THREADS
Env var consulted when the caller-provided threads is 0. Must parse as a u32; zero, missing, empty, or otherwise unparseable values all resolve to 0 (sequential execution).