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 () requires(extent !
 
uint8_t * data () requires DataIsWriteable
 
QUO_IMPLICIT operator byte_view_t< ExtentN > () const
 
QUO_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_t bufferSize, InitOptions options)
 
 ~FixedBufferBase ()
 
 FixedBufferBase (FixedBufferBase &&other)
 
void fillFrom (QByteArray &&source)
 
uint8_t * dataForWriting ()
 
const uint8_t * data () const
 

Detailed Description

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

Definition at line 236 of file e2ee_common.h.

Constructor & Destructor Documentation

◆ FixedBuffer()

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

Member Function Documentation

◆ data()

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

Definition at line 260 of file e2ee_common.h.

◆ operator byte_span_t< ExtentN >()

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

Definition at line 269 of file e2ee_common.h.

◆ operator byte_view_t< ExtentN >()

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

Definition at line 263 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 238 of file e2ee_common.h.


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