Skip to main content

Module file

Module file 

Source
Expand description

File I/O abstractions — port of ojph_file.h/cpp.

Provides trait-based input/output streams and concrete implementations backed by files or in-memory buffers.

Structs§

J2cInfile
File-backed input stream — port of j2c_infile.
J2cOutfile
File-backed output stream — port of j2c_outfile.
MemInfile
Read-only input stream over a borrowed byte slice — port of mem_infile.
MemOutfile
In-memory output stream that grows as data is written — port of mem_outfile.

Enums§

SeekFrom
Origin for seek operations (mirrors std::io::SeekFrom but decoupled from the standard library to match the C++ API).

Traits§

InfileBase
Trait for sequential / seekable input streams — port of infile_base.
OutfileBase
Trait for sequential / seekable output streams — port of outfile_base.