libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
Quotient::FixedBuffer< ExtentN, DataIsWriteable > Class Template Reference

#include <e2ee_common.h>

Inheritance diagram for Quotient::FixedBuffer< ExtentN, DataIsWriteable >:
Collaboration diagram for Quotient::FixedBuffer< ExtentN, DataIsWriteable >:

Public Member Functions

 FixedBuffer (InitOptions fillMode=FillWithZeros)
 
 FixedBuffer (size_type bufferSize)
 
 FixedBuffer (size_type bufferSize, InitOptions fillMode)
 
value_typedata ()
 
Q_IMPLICIT operator byte_view_t< ExtentN > () const
 
Q_IMPLICIT operator byte_span_t< ExtentN > ()
 
const value_typedata () const
 
- Public Member Functions inherited from Quotient::FixedBufferBase
auto size () const
 
auto empty () const
 
void clear ()
 
QByteArray viewAsByteArray () const
 Access the bytes of the fixed buffer via QByteArray interface.
 
QByteArray copyToByteArray (QByteArray::size_type untilPos=-1) const
 Copy the contents of the buffer to a QByteArray.
 
QByteArray toBase64 () const
 
QByteArray toBase64 (QByteArray::Base64Options options) const
 
FixedBufferBaseoperator= (FixedBufferBase &&)=delete
 

Static Public Attributes

static constexpr auto extent = ExtentN
 
- Static Public Attributes inherited from Quotient::FixedBufferBase
static constexpr auto TotalSecureHeapSize = 65'536
 

Additional Inherited Members

- Public Types inherited from Quotient::FixedBufferBase
enum  InitOptions { Uninitialized , FillWithZeros , FillWithRandom }
 
using value_type = byte_t
 
using size_type = size_t
 
- Protected Member Functions inherited from Quotient::FixedBufferBase
 FixedBufferBase (size_type bufferSize, InitOptions options)
 
 ~FixedBufferBase ()
 
 FixedBufferBase (FixedBufferBase &&other)
 
void fillFrom (QByteArray &&source)
 
value_typedataForWriting ()
 
const value_typedata () const
 

Detailed Description

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
class Quotient::FixedBuffer< ExtentN, DataIsWriteable >

Definition at line 211 of file e2ee_common.h.

Constructor & Destructor Documentation

◆ FixedBuffer() [1/3]

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
Quotient::FixedBuffer< ExtentN, DataIsWriteable >::FixedBuffer ( InitOptions  fillMode = FillWithZeros)
inlineexplicit

Definition at line 217 of file e2ee_common.h.

◆ FixedBuffer() [2/3]

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
Quotient::FixedBuffer< ExtentN, DataIsWriteable >::FixedBuffer ( size_type  bufferSize)
inlineexplicit

Definition at line 221 of file e2ee_common.h.

◆ FixedBuffer() [3/3]

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
Quotient::FixedBuffer< ExtentN, DataIsWriteable >::FixedBuffer ( size_type  bufferSize,
InitOptions  fillMode 
)
inlineexplicit

Definition at line 225 of file e2ee_common.h.

Member Function Documentation

◆ data() [1/2]

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
value_type * Quotient::FixedBuffer< ExtentN, DataIsWriteable >::data ( )
inline

Definition at line 231 of file e2ee_common.h.

◆ data() [2/2]

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
const value_type * Quotient::FixedBufferBase::data ( ) const
inline

Definition at line 203 of file e2ee_common.h.

◆ operator byte_span_t< ExtentN >()

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
Q_IMPLICIT Quotient::FixedBuffer< ExtentN, DataIsWriteable >::operator byte_span_t< ExtentN > ( )
inline

Definition at line 238 of file e2ee_common.h.

◆ operator byte_view_t< ExtentN >()

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
Q_IMPLICIT Quotient::FixedBuffer< ExtentN, DataIsWriteable >::operator byte_view_t< ExtentN > ( ) const
inline

Definition at line 233 of file e2ee_common.h.

Member Data Documentation

◆ extent

template<size_t ExtentN = std::dynamic_extent, bool DataIsWriteable = true>
constexpr auto Quotient::FixedBuffer< ExtentN, DataIsWriteable >::extent = ExtentN
staticconstexpr

Definition at line 213 of file e2ee_common.h.


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