Rhopoint Instruments Manual
Esta página aún no está traducida y se muestra en inglés.

Decompression and parsing

The Data byte array of the File Header may be compressed using the gzip algorithm. Once decompressed, it is a CBOR container holding a collection of MeasurementComponentMetaTuple objects.

Steps to parse an RAE file

  1. Validate the magic string and version byte at the start of the file (see File Identification) and skip past the 0xFF terminator.
  2. Deserialize the remainder of the file with a CBOR parser to obtain the RaeBinaryFile header record (see File Header).
  3. Verify the integrity of the Data byte array (optional): compute the hash specified by HashAlgorithm over the Data bytes as stored and compare it against Hash.
  4. Decompress the Data byte array (if Compression is not "none").
  5. Deserialize the decompressed data using a CBOR parser.
  6. Interpret the result based on the Format value. For now, this is always an array of MeasurementComponentMetaTuple maps.