KItinerary

bitarray.h
1/*
2 SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QByteArray>
10#include <QMetaType>
11
12namespace KItinerary {
13namespace JsApi {
14
15/** Bit array methods for JS extractor scripts. */
17{
18 Q_GADGET
19public:
20 BitArray();
21 explicit BitArray(const QByteArray &data);
22 ~BitArray();
23
24 /** Reads a @p size bit long numerical value in most significant bit first format starting at bit offset @p startBit. */
25 Q_INVOKABLE quint64 readNumberMSB(int startBit, int size) const;
26
27private:
28 QByteArray m_data;
29};
30
31}}
32
Bit array methods for JS extractor scripts.
Definition bitarray.h:17
Q_INVOKABLE quint64 readNumberMSB(int startBit, int size) const
Reads a size bit long numerical value in most significant bit first format starting at bit offset sta...
Definition bitarray.cpp:25
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.