Non-template base for owning byte span classes.
More...
#include <e2ee_common.h>
Non-template base for owning byte span classes.
Definition at line 144 of file e2ee_common.h.
◆ size_type
◆ value_type
◆ InitOptions
Enumerator |
---|
Uninitialized | |
FillWithZeros | |
FillWithRandom | |
Definition at line 146 of file e2ee_common.h.
◆ FixedBufferBase() [1/2]
◆ ~FixedBufferBase()
Quotient::FixedBufferBase::~FixedBufferBase |
( |
| ) |
|
|
inlineprotected |
◆ FixedBufferBase() [2/2]
◆ clear()
void Quotient::FixedBufferBase::clear |
( |
| ) |
|
◆ copyToByteArray()
QByteArray Quotient::FixedBufferBase::copyToByteArray |
( |
QByteArray::size_type |
untilPos = -1 | ) |
const |
|
inline |
Copy the contents of the buffer to a QByteArray.
Unlike viewAsByteArray(), this function actually copies the buffer to non-secure memory.
Definition at line 178 of file e2ee_common.h.
◆ data()
const value_type* Quotient::FixedBufferBase::data |
( |
| ) |
const |
|
inlineprotected |
◆ dataForWriting()
value_type* Quotient::FixedBufferBase::dataForWriting |
( |
| ) |
|
|
inlineprotected |
◆ empty()
auto Quotient::FixedBufferBase::empty |
( |
| ) |
const |
|
inline |
◆ fillFrom()
void Quotient::FixedBufferBase::fillFrom |
( |
QByteArray && |
source | ) |
|
|
protected |
◆ operator=()
◆ size()
auto Quotient::FixedBufferBase::size |
( |
| ) |
const |
|
inline |
◆ toBase64() [1/2]
QByteArray Quotient::FixedBufferBase::toBase64 |
( |
| ) |
const |
|
inline |
◆ toBase64() [2/2]
QByteArray Quotient::FixedBufferBase::toBase64 |
( |
QByteArray::Base64Options |
options | ) |
const |
|
inline |
◆ viewAsByteArray()
QByteArray Quotient::FixedBufferBase::viewAsByteArray |
( |
| ) |
const |
|
inline |
Access the bytes of the fixed buffer via QByteArray interface.
This uses QByteArray::fromRawData() to create a QByteArray object that refers to the original fixed buffer, without copying.
- Warning
- the lifetime of the returned QByteArray should not exceed the lifetime of the underlying buffer; in particular, you should never try using the result of viewAsByteArray() as a return value of your function
- See also
- copyToByteArray
Definition at line 167 of file e2ee_common.h.
◆ TotalSecureHeapSize
constexpr auto Quotient::FixedBufferBase::TotalSecureHeapSize = 65'536 |
|
staticconstexpr |
The documentation for this class was generated from the following file: