ARC Archive (.arc)

Early DOS archive format.

Overview

ARC files are a sequence of entries starting with a marker byte 0x1A and a method byte, followed by the 13-byte name, compressed size, date, time, CRC-16 and original size. Methods include stored, packed (RLE), squeezed (Huffman), crunched and squashed (LZW variants).

Where it is used

  • BBS file distribution in the 1980s.

History

  • Created by Thom Henderson of System Enhancement Associates in 1985.

Status today

  • Obsolete; PKARC and ARC variants exist.

Structures read by the implementation

Offsets are in bytes from the start of the buffer named in each heading. Field names are taken from the implementation and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.

ArcArchiveModule.LooksLikeHeader buffer h · ArcArchiveModule.cs

OffsetSizeTypeFieldNotes
0x01u8–
0x11u8–
0x11u8Header Size
0xF4u32 LEPacked

ArcArchiveModule.Mount buffer h · ArcArchiveModule.cs

OffsetSizeTypeFieldNotes
0x01u8–
0x11u8–
0x11u8Ethod
0xF4u32 LEPacked
0x132u16 LEDos Date
0x152u16 LEDos Time
0x172u16 LECrc
0x194u32 LEPacked

ArcDecoders.Unsqueeze buffer d · ArcArchiveModule.cs

OffsetSizeTypeFieldNotes
0x02u16 LECount
(2 + 4 * k)2i16 LE–
(4 + 4 * k)2i16 LE–

ArcCarver.Carve buffer e · ArcCarver.cs

OffsetSizeTypeFieldNotes
0x01u8–
0x11u8Ethod
0xF4u32 LECompressed Size

Constants

Implementation limits reader

ClassNameValueNotes
ArcCarverMaxEntries1_000_000
ArcArchiveModuleMaxMembers1_000_000
Structures and constants were extracted from: Carving/Plugins/Arc/ArcCarver.cs, Modules/FileSystems/ArcArchiveModule.cs. Prose sections are a summary from public sources; verify details before relying on them.