libQuotient
A Qt library for building matrix clients
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) requires(extent !
 
value_typedata () requires DataIsWriteable
 
Q_IMPLICIT operator byte_view_t< ExtentN > () const
 
Q_IMPLICIT operator byte_span_t< ExtentN > () requires DataIsWriteable
 
- 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. More...
 
QByteArray copyToByteArray (QByteArray::size_type untilPos=-1) const
 Copy the contents of the buffer to a QByteArray. More...
 
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 213 of file e2ee_common.h.

Constructor & Destructor Documentation

◆ FixedBuffer()

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

Member Function Documentation

◆ data()

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

Definition at line 233 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 240 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 235 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 215 of file e2ee_common.h.


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