File indexing completed on 2024-05-12 05:55:26
0001 /* 0002 This file is part of the Okteta Core library, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2007 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef OKTETACORE_TEST_UTIL_FILL_HPP 0010 #define OKTETACORE_TEST_UTIL_FILL_HPP 0011 0012 // 0013 #include <addressrange.hpp> 0014 #include <byte.hpp> 0015 0016 namespace Okteta { 0017 class AbstractByteArrayModel; 0018 } 0019 class QByteArray; 0020 0021 // some defines 0022 static constexpr Okteta::Byte FirstMarkChar = 2; 0023 static constexpr Okteta::Byte SecondMarkChar = 3; 0024 static constexpr Okteta::Byte PaintChar = 1; 0025 static constexpr Okteta::Byte BlankChar = '\0'; 0026 0027 void textureByteArrayModel(Okteta::AbstractByteArrayModel* ByteArrayModel, 0028 unsigned char b = 1, unsigned char e = 255, 0029 unsigned int From = 0, int To = -1); 0030 0031 void textureByteArrayModel(Okteta::AbstractByteArrayModel* byteArrayModel, 0032 unsigned char b, unsigned char e, 0033 const Okteta::AddressRange& range); 0034 0035 void textureByteArray(QByteArray* byteArray, 0036 unsigned char b = 1, unsigned char e = 255, 0037 unsigned int From = 0, int To = -1); 0038 0039 void textureByteArray(QByteArray* byteArray, 0040 unsigned char b, unsigned char e, 0041 const Okteta::AddressRange& range); 0042 0043 #endif