Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ClusterBlockHeader Struct Reference

A block inside a cluster. More...

Public Member Functions

 ClusterBlockHeader (const ClusterBlockHeader &other)=default
 
ClusterBlockHeaderoperator= (const ClusterBlockHeader &other)=default
 
template<class T >
 ClusterBlockHeader (T &stream)
 Read from stream. More...
 

Public Attributes

EBMLLengthValue TrackIdentifier
 This element type uses masking to remove the highest bits from the identifier. More...
 
int16_t RelativeTimecode
 
bool Invisible
 
int Lacing
 

Detailed Description

A block inside a cluster.

Definition at line 260 of file MatroskaParser.cpp.

Constructor & Destructor Documentation

◆ ClusterBlockHeader() [1/2]

Leviathan::ClusterBlockHeader::ClusterBlockHeader ( const ClusterBlockHeader other)
default

◆ ClusterBlockHeader() [2/2]

template<class T >
Leviathan::ClusterBlockHeader::ClusterBlockHeader ( T &  stream)
inline

Read from stream.

Definition at line 267 of file MatroskaParser.cpp.

267  : TrackIdentifier(stream)
268  {
269  if(!stream.good())
270  return;
271 
272  int16_t tmp;
273 
274  stream.read(reinterpret_cast<char*>(&tmp), sizeof(tmp));
275 
276  RelativeTimecode = boost::endian::big_to_native(tmp);
277 
278  uint8_t flags = stream.get();
279 
282  }
constexpr uint8_t MATROSKA_BLOCK_FLAG_INVISIBLE
unsigned char uint8_t
Definition: core.h:38
constexpr uint8_t MATROSKA_BLOCK_FLAG_LACING
EBMLLengthValue TrackIdentifier
This element type uses masking to remove the highest bits from the identifier.

Member Function Documentation

◆ operator=()

ClusterBlockHeader& Leviathan::ClusterBlockHeader::operator= ( const ClusterBlockHeader other)
default

Member Data Documentation

◆ Invisible

bool Leviathan::ClusterBlockHeader::Invisible

Definition at line 289 of file MatroskaParser.cpp.

◆ Lacing

int Leviathan::ClusterBlockHeader::Lacing

Definition at line 290 of file MatroskaParser.cpp.

◆ RelativeTimecode

int16_t Leviathan::ClusterBlockHeader::RelativeTimecode

Definition at line 286 of file MatroskaParser.cpp.

◆ TrackIdentifier

EBMLLengthValue Leviathan::ClusterBlockHeader::TrackIdentifier

This element type uses masking to remove the highest bits from the identifier.

Definition at line 285 of file MatroskaParser.cpp.


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