Skip to main content

Crate rustpix_io

Crate rustpix_io 

Source
Expand description

rustpix-io: Memory-mapped file I/O for rustpix.

This crate provides efficient file reading and writing using memory-mapped files via memmap2.

Re-exports§

pub use out_of_core::pulse_batches;
pub use out_of_core::OutOfCoreConfig;
pub use out_of_core::PulseBatchGroup;
pub use out_of_core::PulseBatcher;
pub use out_of_core::PulseSlice;
pub use scanner::PacketScanner;

Modules§

out_of_core
Out-of-core batching utilities for pulse-ordered TPX3 streams.
scanner
Section scanner for TPX3 files.

Structs§

DataFileWriter
Writer for processed data output.
EventBatch
A pulse-ordered event batch with its TDC timestamp (25ns ticks).
MappedFileReader
A memory-mapped file reader.
OutOfCoreNeutronStream
Iterator over out-of-core pulse batches.
PulseNeutronBatch
Neutron output for a single pulse.
ThreadedOutOfCoreNeutronStream
Threaded out-of-core stream with bounded queues.
TimeOrderedEventStream
Time-ordered stream of event batches that owns the underlying file mapping.
TimeOrderedHitStream
Time-ordered stream of hit batches that owns the underlying file mapping.
Tpx3FileReader
A TPX3 file reader with memory-mapped I/O.

Enums§

Error
I/O error types.
OutOfCoreNeutronStreamHandle
Stream handle that can be single-threaded or threaded.

Functions§

out_of_core_neutron_stream
Build an out-of-core neutron stream from a TPX3 reader.
out_of_core_neutron_stream_handle
Build an out-of-core neutron stream handle from a TPX3 reader.

Type Aliases§

Result
Result type for I/O operations.