Motr  M0
m0_format_header Struct Reference

#include <format.h>

Collaboration diagram for m0_format_header:
Collaboration graph

Data Fields

uint64_t hd_magic
 
uint64_t hd_bits
 

Detailed Description

Standard header of a persistent object.

Definition at line 38 of file format.h.

Field Documentation

◆ hd_bits

uint64_t hd_bits

Encoding of m0_format_tag data.

  • 16 most significant bits – version number;
  • 16 bits in the middle – object type;
  • 32 least significant bits – size in bytes.
See also
m0_format_header_pack(), m0_format_header_unpack()

Definition at line 53 of file format.h.

◆ hd_magic

uint64_t hd_magic

Header magic, used in m0_format_footer_verify() to verify that buffer has a valid m0_format_header.

Definition at line 43 of file format.h.


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