CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
CFxUIByteArray Class Reference

#include <FxUIByteArray.h>

Public Member Functions

 CFxUIByteArray ()
 
 CFxUIByteArray (const char *data, qsizetype size=-1)
 
 CFxUIByteArray (const CFxUIByteArray &pixmap)
 
 CFxUIByteArray (const QByteArray &pixmap)
 
 ~CFxUIByteArray ()
 
CFxUIByteArrayoperator= (const CFxUIByteArray &pixmap)
 
 operator const QByteArray & () const
 
QByteArray & append (const char *str)
 
void clear ()
 
const char * constData () const
 
const char * data () const
 
bool isEmpty () const
 
bool isNull () const
 
int length () const
 
qsizetype size () const
 
double toDouble (bool *ok=nullptr) const
 
int toInt (bool *ok=nullptr, int base=10) const
 
long toLong (bool *ok=nullptr, int base=10) const
 
qlonglong toLongLong (bool *ok=nullptr, int base=10) const
 
CFxUIByteArray toLower () const
 
short toShort (bool *ok=nullptr, int base=10) const
 
std::string toStdString () const
 
bool startsWith (const char *c) const
 

Protected Attributes

CFxUIByteArrayImpl * m_pImpl = nullptr
 

Detailed Description

Definition at line 33 of file FxUIByteArray.h.

Constructor & Destructor Documentation

◆ CFxUIByteArray() [1/4]

CFxUIByteArray::CFxUIByteArray ( )

Constructors

◆ CFxUIByteArray() [2/4]

CFxUIByteArray::CFxUIByteArray ( const char * data,
qsizetype size = -1 )

Parameterized Constructor

◆ CFxUIByteArray() [3/4]

CFxUIByteArray::CFxUIByteArray ( const CFxUIByteArray & pixmap)

Copy Constructor

◆ CFxUIByteArray() [4/4]

CFxUIByteArray::CFxUIByteArray ( const QByteArray & pixmap)

◆ ~CFxUIByteArray()

CFxUIByteArray::~CFxUIByteArray ( )

Destructor

Member Function Documentation

◆ append()

QByteArray & CFxUIByteArray::append ( const char * str)

Appends the '\0'-terminated string str to this byte array.

Parameters
char
Returns
QByteArray

◆ clear()

void CFxUIByteArray::clear ( )

Clears the contents of the byte array and makes it null.

◆ constData()

const char * CFxUIByteArray::constData ( ) const

Returns a pointer to the const data stored in the byte array.

Returns
char*

◆ data()

const char * CFxUIByteArray::data ( ) const

Returns a pointer to the data stored in the byte array.

Returns
char*

◆ isEmpty()

bool CFxUIByteArray::isEmpty ( ) const

Returns true if the byte array has size 0; otherwise returns false.

Returns
bool

◆ isNull()

bool CFxUIByteArray::isNull ( ) const

Returns true if this byte array is null; otherwise returns false.

Returns
bool

◆ length()

int CFxUIByteArray::length ( ) const

Returns the number of bytes in this byte array.

Returns
int

◆ operator const QByteArray &()

CFxUIByteArray::operator const QByteArray & ( ) const

◆ operator=()

CFxUIByteArray & CFxUIByteArray::operator= ( const CFxUIByteArray & pixmap)

Assignment operator

◆ size()

qsizetype CFxUIByteArray::size ( ) const

Returns the number of bytes in this byte array.

Returns
qsizetype

◆ startsWith()

bool CFxUIByteArray::startsWith ( const char * c) const

Returns true if this byte array starts with byte ch; otherwise returns false.

Parameters
char*
Returns
bool

◆ toDouble()

double CFxUIByteArray::toDouble ( bool * ok = nullptr) const

Returns the byte array converted to a double value.

Parameters
isBool *ok which sets to true if the value could be converted to a double, otherwise *ok is set to false.
Returns
double

◆ toInt()

int CFxUIByteArray::toInt ( bool * ok = nullptr,
int base = 10 ) const

Returns the byte array converted to an int using base base, which is ten by default.

Parameters
isBool *ok which sets to true if the value could be converted to an integer, otherwise *ok is set to false.
base
Returns
int

◆ toLong()

long CFxUIByteArray::toLong ( bool * ok = nullptr,
int base = 10 ) const

Returns the byte array converted to a long int using base base, which is ten by default.

Parameters
isBool *ok which sets to true if the value could be converted to an long, otherwise *ok is set to false.
base
Returns
long

◆ toLongLong()

qlonglong CFxUIByteArray::toLongLong ( bool * ok = nullptr,
int base = 10 ) const

Returns the byte array converted to a long long using base base, which is ten by default.

Parameters
isBool *ok which sets to true if the value could be converted to an longlong, otherwise *ok is set to false.
base
Returns
qlonglong

◆ toLower()

CFxUIByteArray CFxUIByteArray::toLower ( ) const

Returns a copy of the byte array in which each ASCII uppercase letter converted to lowercase.

Returns
CFxUIByteArray

◆ toShort()

short CFxUIByteArray::toShort ( bool * ok = nullptr,
int base = 10 ) const

Returns the byte array converted to a short using base base, which is ten by default.

Parameters
isBool *ok which sets to true if the value could be converted to an short, otherwise *ok is set to false.
base
Returns
short

◆ toStdString()

std::string CFxUIByteArray::toStdString ( ) const

Returns a std::string object with the data contained in this CFxUIByteArray.

Returns
std::string

Member Data Documentation

◆ m_pImpl

CFxUIByteArrayImpl* CFxUIByteArray::m_pImpl = nullptr
protected

Definition at line 188 of file FxUIByteArray.h.


The documentation for this class was generated from the following file: