Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qbytearrayview.h File Reference

(7cf57cffbc910918bddefc02c6171945c1149364)

#include <QtCore/qbytearrayalgorithms.h>
#include <QtCore/qcompare.h>
#include <QtCore/qstringfwd.h>
#include <QtCore/qarraydata.h>
#include <string>
#include <string_view>
#include <QtCore/q20type_traits.h>
+ Include dependency graph for qbytearrayview.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QtPrivate::IsCompatibleByteTypeHelper< Byte >
 
struct  QtPrivate::IsCompatibleByteType< Byte >
 
struct  QtPrivate::IsCompatibleByteArrayPointerHelper< Pointer >
 
struct  QtPrivate::IsCompatibleByteArrayPointerHelper< Byte * >
 
struct  QtPrivate::IsCompatibleByteArrayPointer< Pointer >
 
struct  QtPrivate::IsContainerCompatibleWithQByteArrayView< T, Enable >
 
struct  QtPrivate::IsContainerCompatibleWithQByteArrayView< T, std::enable_if_t< std::conjunction_v< IsCompatibleByteArrayPointer< decltype(std::data(std::declval< const T & >()))>, std::is_convertible< decltype(std::size(std::declval< const T & >())), qsizetype >, IsCompatibleByteType< typename std::iterator_traits< decltype(std::begin(std::declval< const T & >()))>::value_type >, std::is_convertible< decltype(std::begin(std::declval< const T & >()) !=std::end(std::declval< const T & >())), bool >, std::negation< std::is_same< std::decay_t< T >, QByteArray > >, std::negation< std::is_array< T > >, std::negation< std::is_same< std::decay_t< T >, QByteArrayView > > > > >
 
class  QByteArrayView
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

Functions

template<typename Char >
static constexpr qsizetype QtPrivate::lengthHelperPointer (const Char *data) noexcept
 
 Q_DECLARE_TYPEINFO (QByteArrayView, Q_PRIMITIVE_TYPE)
 
template<typename QByteArrayLike , std::enable_if_t< std::is_same_v< QByteArrayLike, QByteArray >, bool > = true>
QByteArrayView qToByteArrayViewIgnoringNull (const QByteArrayLike &b) noexcept
 

Function Documentation

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QByteArrayView ,
Q_PRIMITIVE_TYPE  )

◆ qToByteArrayViewIgnoringNull()

template<typename QByteArrayLike , std::enable_if_t< std::is_same_v< QByteArrayLike, QByteArray >, bool > = true>
QByteArrayView qToByteArrayViewIgnoringNull ( const QByteArrayLike & b)
inlinenoexcept