pstore2
Public Attributes | List of all members
pstore::header::body Struct Reference

Represents the portion of the header structure which is covered by the computed CRC value. More...

#include <file_header.hpp>

Collaboration diagram for pstore::header::body:
Collaboration graph
[legend]

Public Attributes

std::array< std::uint8_t, 4 > signature1
 The file signature is split into two pieces of four bytes each. More...
 
std::uint32_t signature2
 The second half of the file signature. More...
 
std::array< std::uint16_t, 2 > version
 The file format version number (major, minor).
 
std::uint32_t header_size = sizeof (header)
 
class uuid id
 The database ID.
 

Detailed Description

Represents the portion of the header structure which is covered by the computed CRC value.

Member Data Documentation

◆ signature1

std::array<std::uint8_t, 4> pstore::header::body::signature1

The file signature is split into two pieces of four bytes each.

The first of these (signature1) is an array of bytes so that the signature is easily recongisable in a hex dump, the second is a 32-bit value so that we can easily verify the machine endianness (a BOM in effect).

◆ signature2

std::uint32_t pstore::header::body::signature2

The second half of the file signature.

This value is used to determine the endian-ness of the file.


The documentation for this struct was generated from the following file: