1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! The XISF engine: reading and writing the format itself.
//!
//! Written from the [XISF 1.0 specification][spec], which states that anyone
//! may implement it freely. Nothing here derives from libXISF (GPL-3.0) or
//! from the PixInsight Class Library, whose licence forbids this use; see
//! `docs/PLAN.md`.
//!
//! [spec]: https://pixinsight.com/doc/docs/XISF-1.0-spec/XISF-1.0-spec.html
//!
//! A monolithic XISF file is a signature, a header length, the XML header,
//! and then whatever data blocks the header points at:
//!
//! ```text
//! "XISF0100" 8 bytes
//! header length u32, little-endian
//! reserved 4 bytes, zero
//! XISF header XML 1.0, UTF-8
//! [data blocks] addressed by `location="attachment:position:size"`
//! ```
// `alloc` is not linked automatically even in a crate that has `std`, so it
// is named here to make `alloc::` paths resolve. Reaching for the narrowest
// crate that has an item -- `core` where no allocator is needed, `alloc`
// where one is but an operating system is not -- keeps the door open to a
// `no_std` build and marks which parts genuinely need the platform.
extern crate alloc;
pub use ;
pub use ;