Diese Seite ist noch nicht auf Deutsch verfügbar und wird auf Englisch angezeigt.
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
- Validate the magic string and version byte at the start of the file (see File Identification) and skip past the
0xFFterminator. - Deserialize the remainder of the file with a CBOR parser to obtain the
RaeBinaryFileheader record (see File Header). - Verify the integrity of the
Databyte array (optional): compute the hash specified byHashAlgorithmover theDatabytes as stored and compare it againstHash. - Decompress the
Databyte array (ifCompressionis not"none"). - Deserialize the decompressed data using a CBOR parser.
- Interpret the result based on the
Formatvalue. For now, this is always an array of MeasurementComponentMetaTuple maps.