Constant END_OF_HEADER

Source
pub const END_OF_HEADER: u8 = 0x1a;
Expand description

Starting at the beginning of the file, the header details specific information about the file.

  1. CG tag (2 bytes)
  2. version number (2 bytes)
  3. width of graph (4 bytes)
  4. height of graph (4 bytes)
  5. END_OF_HEADER

The header has a total of 13 bytes. (12 of info, 1 of `END_OF_HEADER)

Everything after END_OF_HEADER should be another command and its parameters.