Vector BLF

Loading...
Searching...
No Matches
Most150AllocTab.h
1// SPDX-FileCopyrightText: 2013-2021 Tobias Lorenz <tobias.lorenz@gmx.net>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include <Vector/BLF/platform.h>
8
9#include <vector>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/ObjectHeader2.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16 namespace Vector {
17 namespace BLF {
18
24 struct VECTOR_BLF_EXPORT Most150AllocTab final : ObjectHeader2 { /* applied for MOST50 and MOST150 */
25 Most150AllocTab();
26
27 void read(AbstractFile & is) override;
28 void write(AbstractFile & os) override;
29 uint32_t calculateObjectSize() const override;
30
36 uint16_t channel {};
37
43 uint16_t eventModeFlags {};
44
52 uint16_t freeBytes {};
53
60 uint16_t length {};
61
63 uint64_t reservedMost150AllocTab {};
64
93 std::vector<uint8_t> tableData {};
94};
95
96}
97}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::Most150AllocTab::freeBytes
uint16_t freeBytes
number of free bytes after the operation
Definition Most150AllocTab.h:52
Vector::BLF::Most150AllocTab::read
void read(AbstractFile &is) override
Definition Most150AllocTab.cpp:14
Vector::BLF::Most150AllocTab::length
uint16_t length
number of bytes in tableData
Definition Most150AllocTab.h:60
Vector::BLF::Most150AllocTab::tableData
std::vector< uint8_t > tableData
Definition Most150AllocTab.h:93
Vector::BLF::Most150AllocTab::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition Most150AllocTab.cpp:44
Vector::BLF::Most150AllocTab::eventModeFlags
uint16_t eventModeFlags
determines the data layout
Definition Most150AllocTab.h:43
Vector::BLF::Most150AllocTab::channel
uint16_t channel
application channel
Definition Most150AllocTab.h:36
Vector::BLF::Most150AllocTab::reservedMost150AllocTab
uint64_t reservedMost150AllocTab
Definition Most150AllocTab.h:63
Vector::BLF::Most150AllocTab::write
void write(AbstractFile &os) override
Definition Most150AllocTab.cpp:28