7#include <QtCore/qdatastream.h>
8#include <QtCore/qdatetime.h>
9#include <QtCore/qlist.h>
11#include <private/qtools_p.h>
79 for (
int i = 0;
i < bytes;
i++) {
92 const int BUFFERSIZE = 4 * 1024;
94 int remainingLength =
length;
95 while (remainingLength) {
97 const int bytesToRead =
qMin(remainingLength, BUFFERSIZE);
99 if (
count !=
int(bytesToRead))
102 remainingLength -= bytesToRead;
106 mValue.
swap(tmpValue);
125 quint8 encodedLength = 0x80;
176 elem.mValue +=
quint8((
bits[0].toUInt() * 40 +
bits[1].toUInt()));
177 for (
int i = 2;
i <
bits.size(); ++
i) {
178 char buffer[std::numeric_limits<unsigned int>::digits / 7 + 2];
181 unsigned int node =
bits[
i].toUInt();
182 *--pBuffer =
quint8((node & 0x7f));
185 *--pBuffer =
quint8(((node & 0x7f) | 0x80));
188 elem.mValue += pBuffer;
199 }
else if (*
this ==
fromBool(
false)) {
214 if (mValue.
size() != 13 && mValue.
size() != 15)
223 if (mValue.
back() !=
'Z')
266 const auto elems = issuerElem.
toList();
267 if (elems.size() == 2) {
270 info.insert(
key, elems.back().toString());
287 if (mValue.
at(0) & 0x80 || mValue.
size() > 8) {
294 for (
int i = 1;
i < mValue.
size(); ++
i)
320 unsigned int val = 0;
321 for (
int i = 1;
i < mValue.
size(); ++
i) {
336 return oidNameMap->value(
key,
key);
@ UniformResourceIdentifierType
QByteArray toObjectName() const
QMultiMap< QByteArray, QString > toInfo() const
QDateTime toDateTime() const
bool read(QDataStream &data)
qint64 toInteger(bool *ok=nullptr) const
static QAsn1Element fromVector(const QList< QAsn1Element > &items)
static QAsn1Element fromObjectId(const QByteArray &id)
void write(QDataStream &data) const
static QAsn1Element fromInteger(unsigned int val)
QByteArray toObjectId() const
bool toBool(bool *ok=nullptr) const
static QAsn1Element fromBool(bool val)
QList< QAsn1Element > toList() const
char * data()
\macro QT_NO_CAST_FROM_BYTEARRAY
QByteArray & prepend(char c)
This is an overloaded member function, provided for convenience. It differs from the above function o...
qsizetype size() const noexcept
Returns the number of bytes in this byte array.
char at(qsizetype i) const
Returns the byte at index position i in the byte array.
void swap(QByteArray &other) noexcept
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
static QByteArray number(int, int base=10)
Returns a byte-array representing the whole number n as text.
QByteArray & append(char c)
This is an overloaded member function, provided for convenience. It differs from the above function o...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
QDate addYears(int years) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int year() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool setDate(int year, int month, int day)
const_iterator cend() const noexcept
const_iterator cbegin() const noexcept
iterator insert(const Key &key, const T &value)
const_iterator cend() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QSet< QString >::iterator it
Combined button and popup list for selecting options.
constexpr bool isAsciiDigit(char32_t c) noexcept
QMap< QByteArray, QByteArray > OidNameMap
static OidNameMap createOidMap()
#define QByteArrayLiteral(str)
size_t qstrlen(const char *str)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE, NAME, ARGS)
constexpr const T & qMin(const T &a, const T &b)
GLboolean GLboolean GLboolean b
GLenum GLuint GLenum GLsizei length
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * bits
GLbitfield GLuint readBuffer
#define QStringLiteral(str)
unsigned long long quint64
QFileInfo info(fileName)
[8]