Vector BLF: RestorePointContainer.h Source File

Vector BLF

Loading...
Searching...
No Matches
RestorePointContainer.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 <array>
10#include <vector>
11
12#include <Vector/BLF/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
32 struct VECTOR_BLF_EXPORT RestorePointContainer final : public ObjectHeader {
33 RestorePointContainer();
34
35 void read(AbstractFile & is) override;
36 void write(AbstractFile & os) override;
37 uint32_t calculateObjectSize() const override;
38
40 std::array<uint8_t, 14> reservedRestorePointContainer {};
41
43 uint16_t dataLength {};
44
46 std::vector<uint8_t> data {};
47};
48
49}
50}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::RestorePointContainer::write
void write(AbstractFile &os) override
Definition RestorePointContainer.cpp:23
Vector::BLF::RestorePointContainer::data
std::vector< uint8_t > data
Definition RestorePointContainer.h:46
Vector::BLF::RestorePointContainer::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition RestorePointContainer.cpp:33
Vector::BLF::RestorePointContainer::read
void read(AbstractFile &is) override
Definition RestorePointContainer.cpp:14
Vector::BLF::RestorePointContainer::dataLength
uint16_t dataLength
Definition RestorePointContainer.h:43
Vector::BLF::RestorePointContainer::reservedRestorePointContainer
std::array< uint8_t, 14 > reservedRestorePointContainer
Definition RestorePointContainer.h:40