QCA
qca_tools.h
Go to the documentation of this file.
BigInteger(int n)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool operator<=(const BigInteger &other) const
Less than or equal operator.
Definition qca_tools.h:792
BigInteger(const char *c)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool operator>=(const BigInteger &other) const
Greater than or equal operator.
Definition qca_tools.h:804
BigInteger(const QCA::SecureArray &a)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QCA::SecureArray toArray() const
Output BigInteger as a byte array, useful for storage or transmission.
BigInteger(const BigInteger &from)
This is an overloaded member function, provided for convenience. It differs from the above function o...
BigInteger(const QString &s)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QCA_EXPORT QTextStream & operator<<(QTextStream &stream, const BigInteger &b)
Stream operator.
int compare(const BigInteger &n) const
Compare this value with another BigInteger.
BigInteger & operator=(const QString &s)
This is an overloaded member function, provided for convenience. It differs from the above function o...
MemoryRegion & operator=(const MemoryRegion &from)
Standard assignment operator.
MemoryRegion & operator=(const QByteArray &from)
Standard assignment operator.
void set(const QByteArray &from, bool secure)
Modify the memory region to match a specified byte array.
const char * data() const
Convert the contents of the memory region to a C-compatible character array.
MemoryRegion(int size, bool secure)
Create a memory region, optionally using secure storage.
bool isEmpty() const
Returns true if the size of the memory region is zero.
MemoryRegion(const QByteArray &from, bool secure)
Create a memory region, optionally using secure storage.
bool isSecure() const
Test if the MemoryRegion is using secure memory, or not.
void setSecure(bool secure)
Convert the memory region to use the specified memory type.
const char & at(int index) const
Obtain the value of the memory location at the specified position.
const char * constData() const
Convert the contents of the memory region to a C-compatible character array.
MemoryRegion(const QByteArray &from)
Constructs a new MemoryRegion from the data in a byte array.
MemoryRegion(const char *str)
Constructs a new Memory Region from a null terminated character array.
QByteArray toByteArray() const
Convert this memory region to a byte array.
char & at(int index)
Obtain the value of the memory location at the specified position.
MemoryRegion(bool secure)
Create a memory region, optionally using secure storage.
char * data()
Convert the contents of the memory region to a C-compatible character array.
SecureArray & operator=(const SecureArray &from)
Creates a reference, rather than a deep copy.
void set(const SecureArray &from)
Assign the contents of a provided byte array to this object.
SecureArray(const MemoryRegion &a)
Construct a secure byte array from a MemoryRegion.
const char & operator[](int index) const
Returns a reference to the byte at the index position.
SecureArray & operator=(const QByteArray &a)
Creates a copy, rather than references.
char & operator[](int index)
Returns a reference to the byte at the index position.
SecureArray(const QByteArray &a)
Construct a secure byte array from a QByteArray.
bool resize(int size)
Change the length of this array If the new length is less than the old length, the extra information ...
SecureArray(const SecureArray &from)
Construct a (shallow) copy of another secure byte array.
SecureArray(int size, char ch=0)
Construct a secure byte array of the specified length.
SecureArray(const char *str)
Construct a secure byte array from a string.
QByteArray toByteArray() const
Copy the contents of the secure array out to a standard QByteArray.
void fill(char fillChar, int fillToPosition=-1)
Fill the data array with a specified character.
const char & at(int index) const
Returns a reference to the byte at the index position.
void set(const QByteArray &from)
Assign the contents of a provided byte array to this object.
SecureArray & operator+=(const SecureArray &a)
Append a secure byte array to the end of this array.
SecureArray & append(const SecureArray &a)
Append a secure byte array to the end of this array.
QCA_EXPORT const SecureArray operator+(const SecureArray &a, const SecureArray &b)
Returns an array that is the result of concatenating a and b.
QCA_EXPORT void * qca_secure_realloc(void *p, int bytes)
Resize (re-allocate) a block of memory that has been previously allocated from the secure memory pool...
QCA_EXPORT void * qca_secure_alloc(int bytes)
Allocate a block of memory from the secure memory pool.
QCA_EXPORT void qca_secure_free(void *p)
Free (de-allocate) a block of memory that has been previously allocated from the secure memory pool.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:53:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:53:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.