Lumiera  0.pre.03
»edit your freedom«
TestFrame::Meta Struct Reference

Description

Definition at line 78 of file testframe.hpp.

Public Member Functions

 Meta (uint seq, uint family)
 
bool isPlausible () const
 Sanity check on the metadata header. More...
 
bool operator== (Meta const &) const
 

Public Attributes

HashVal _MARK_
 
HashVal checksum
 
uint64_t distinction
 
StageOfLife stage
 

Member Function Documentation

◆ isPlausible()

bool isPlausible ( ) const

Sanity check on the metadata header.

Remarks
Relevant to detect memory corruption or when accessing some arbitrary memory location, which may or may not actually hold a TestFrame. Based on the assumption that it is unlikely that any given memory location just happens to hold our marker word by accident.
Note
this is only the base level of verification, because in addition isValid verifies the checksum and isPristine additionally recomputes the data generation to see if it matches the Meta::distinction.

Definition at line 271 of file testframe.cpp.

+ Collaboration diagram for TestFrame::Meta:

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