Pottu
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
pottu::ebyedataheader_t Struct Reference

Struct defining the block header in the tdr file. More...

#include <ebyedataheader.hpp>

Public Member Functions

bool isValid () const noexcept
 Checks that header is valid-. More...
 

Static Public Member Functions

static ebyedataheader_t createFromMemory (const char *p) noexcept
 Creates ebyedataheader_t from a memory buffer. More...
 

Public Attributes

char id [8]
 
uint32_t sequence
 
uint16_t stream
 
uint16_t tape
 
uint16_t myEndian
 
uint16_t dataEndian
 
uint32_t dataLen
 

Friends

std::ostream & operator<< (std::ostream &os, const ebyedataheader_t &h)
 

Detailed Description

Struct defining the block header in the tdr file.

Member Function Documentation

◆ createFromMemory()

static ebyedataheader_t pottu::ebyedataheader_t::createFromMemory ( const char *  p)
inlinestaticnoexcept

Creates ebyedataheader_t from a memory buffer.

Parameters
pPointer to memory of containing 24 bytes required by the header.
Returns
ebyedataheader_t filled with values read from the buffer.

24 bytes of memory pointed by p must not overlap with memory of this structure.

◆ isValid()

bool pottu::ebyedataheader_t::isValid ( ) const
inlinenoexcept

Checks that header is valid-.

Returns
true if valid

Checks that the stream, tape, myEndian and dataEndian fields all are having value 1 and the id contains EBYEDATA.


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