Crate ctb_formats_apple_single_double

Crate ctb_formats_apple_single_double 

Source
Expand description

AppleSingle and AppleDouble archive format reader and JSON exporter.

Syntactically, AppleSingle and AppleDouble share the same container format with distinct magic numbers:

  • AppleSingle (0x00051600): holds data fork, resource fork, and metadata.
  • AppleDouble (0x00051607): holds resource fork and metadata in an auxiliary companion file (such as ._<filename>), keeping the data fork in a separate plain file.

Structs§

AppleArchive
Decoded AppleSingle or AppleDouble archive.
AppleArchiveEntry
Raw entry descriptor within the archive header table.
AppleDatesInfo
Complete timestamps record for AppleSingle / AppleDouble file dates entry (ID 7).
AppleExtendedAttribute
Extended attribute extracted from AppleDouble ATTR block.
AppleRawEntry
Preserved raw unrecognized entry from AppleSingle or AppleDouble archive.
AppleReadOptions
Options controlling which AppleSingle, AppleDouble, and Windows alternate data stream companion styles to detect and unpack on read.
ExtendedFinderInfo
Extended Finder information (FXInfo, 16 bytes).
ExtendedFlags
Extended Finder boolean flags decoded from classic Mac OS 8-bit xflags.
FinderFlags
Decoded Finder flags boolean flags.
FinderInfo
Complete Finder metadata (FInfo + optional FXInfo).

Enums§

AppleDoubleStyle
The storage style used for auxiliary AppleDouble companion files.
AppleFormat
Archive format variant identified by the header magic.
AppleSingleExtension
Extension convention for AppleSingle files.
EntryType
Standard AppleSingle / AppleDouble entry identifier.
FinderLabel
Decoded Finder label color and names.

Constants§

APPLEDOUBLE_MAGIC_BE
AppleDouble magic number in big-endian byte order.
APPLEDOUBLE_MAGIC_LE
AppleDouble magic number in little-endian byte order.
APPLESINGLE_MAGIC_BE
AppleSingle magic number in big-endian byte order.
APPLESINGLE_MAGIC_LE
AppleSingle magic number in little-endian byte order.
ATTR_MAGIC_BE
Extended attributes magic “ATTR” in big-endian (0x41545452).
SECONDS_1970_TO_2000
Number of seconds between Unix epoch (1970-01-01) and Mac OS 2000 epoch (2000-01-01).
TIMESTAMP_UNSET_SENTINEL
Sentinel value indicating an unset timestamp in AppleSingle v2 date records.
VERSION_1_0_BE
Legacy format version 1.0.
VERSION_1_0_LE
Legacy format version 1.0 in little-endian.
VERSION_2_0_BE
Standard AppleSingle/AppleDouble format version 2.0.
VERSION_2_0_LE
Standard AppleSingle/AppleDouble format version 2.0 in little-endian.

Functions§

get_apple_single_double_data
Retrieves AppleSingle / AppleDouble test fixture data by path key.
get_companion_path
Computes the path to an AppleDouble companion file according to style.
is_apple_double_file
Returns whether the file at path is a regular file starting with AppleDouble magic bytes.
is_apple_single_file
Returns whether the file at path is a regular file starting with AppleSingle magic bytes.
read_apple_single_double
Reads an AppleSingle or AppleDouble file from a raw byte slice.
write_apple_single_double
Serializes an AppleArchive to a raw byte buffer (AppleSingle or AppleDouble).

Type Aliases§

AppleUnrecognizedEntry
Type alias reflecting that raw entries preserve unrecognized container records.