MAGIC_BYTES

Constant MAGIC_BYTES 

Source
pub const MAGIC_BYTES: [u8; 8];
Expand description

Magic bytes to identify our file format: “ADAPIPE\0”

These magic bytes are used to identify files in the Adaptive Pipeline binary format. They appear at the end of the file for efficient format detection without reading the entire file.

The magic bytes spell “ADAPIPE” followed by a null terminator:

  • 0x41 = ‘A’
  • 0x44 = ‘D’
  • 0x41 = ‘A’
  • 0x50 = ‘P’
  • 0x49 = ‘I’
  • 0x50 = ‘P’
  • 0x45 = ‘E’
  • 0x00 = null terminator