Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qbytearrayview.h File Reference

(327e8a904cb8e6665b7e42ae35cdcfd2afc84409)

#include <QtCore/qbytearrayalgorithms.h>
#include <QtCore/qcompare.h>
#include <QtCore/qcontainerfwd.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::IsCompatibleByteTypeHelper< char >
 
struct  QtPrivate::IsCompatibleByteTypeHelper< signed char >
 
struct  QtPrivate::IsCompatibleByteTypeHelper< unsigned char >
 
struct  QtPrivate::IsCompatibleByteTypeHelper< std::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)
inlinenodiscardnoexcept

Definition at line 393 of file qbytearrayview.h.