Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxcrt::BinaryBuffer Class Reference

#include <binary_buffer.h>

+ Inheritance diagram for fxcrt::BinaryBuffer:
+ Collaboration diagram for fxcrt::BinaryBuffer:

Public Member Functions

 BinaryBuffer ()
 
 BinaryBuffer (BinaryBuffer &&that) noexcept
 
 BinaryBuffer (const BinaryBuffer &that)=delete
 
virtual ~BinaryBuffer ()
 
BinaryBufferoperator= (BinaryBuffer &&that) noexcept
 
BinaryBufferoperator= (const BinaryBuffer &that)=delete
 
pdfium::span< uint8_t > GetMutableSpan ()
 
pdfium::span< const uint8_t > GetSpan () const
 
bool IsEmpty () const
 
size_t GetSize () const
 
virtual size_t GetLength () const
 
void Clear ()
 
void SetAllocStep (size_t step)
 
void EstimateSize (size_t size)
 
void AppendSpan (pdfium::span< const uint8_t > span)
 
void AppendString (const ByteString &str)
 
void AppendUint8 (uint8_t value)
 
void AppendUint16 (uint16_t value)
 
void AppendUint32 (uint32_t value)
 
void AppendDouble (double value)
 
DataVector< uint8_t > DetachBuffer ()
 

Protected Member Functions

void ExpandBuf (size_t size)
 
void DeleteBuf (size_t start_index, size_t count)
 

Protected Attributes

size_t m_AllocStep = 0
 
size_t m_DataSize = 0
 
DataVector< uint8_t > m_buffer
 

Detailed Description

Definition at line 19 of file binary_buffer.h.

Constructor & Destructor Documentation

◆ BinaryBuffer() [1/3]

fxcrt::BinaryBuffer::BinaryBuffer ( )
default

◆ BinaryBuffer() [2/3]

fxcrt::BinaryBuffer::BinaryBuffer ( BinaryBuffer && that)
noexcept

Definition at line 19 of file binary_buffer.cpp.

References BinaryBuffer().

Referenced by BinaryBuffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BinaryBuffer() [3/3]

fxcrt::BinaryBuffer::BinaryBuffer ( const BinaryBuffer & that)
delete

◆ ~BinaryBuffer()

fxcrt::BinaryBuffer::~BinaryBuffer ( )
virtualdefault

Member Function Documentation

◆ AppendDouble()

void fxcrt::BinaryBuffer::AppendDouble ( double value)

Definition at line 118 of file binary_buffer.cpp.

References AppendSpan().

Referenced by fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AppendSpan()

void fxcrt::BinaryBuffer::AppendSpan ( pdfium::span< const uint8_t > span)

Definition at line 93 of file binary_buffer.cpp.

Referenced by AppendDouble(), AppendString(), AppendUint16(), AppendUint32(), AppendUint8(), fxcrt::TEST(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ AppendString()

void fxcrt::BinaryBuffer::AppendString ( const ByteString & str)

Definition at line 102 of file binary_buffer.cpp.

References AppendSpan().

Referenced by fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AppendUint16()

void fxcrt::BinaryBuffer::AppendUint16 ( uint16_t value)

Definition at line 110 of file binary_buffer.cpp.

References AppendSpan().

Referenced by fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AppendUint32()

void fxcrt::BinaryBuffer::AppendUint32 ( uint32_t value)

Definition at line 114 of file binary_buffer.cpp.

References AppendSpan().

Referenced by fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AppendUint8()

void fxcrt::BinaryBuffer::AppendUint8 ( uint8_t value)

Definition at line 106 of file binary_buffer.cpp.

References AppendSpan().

Referenced by fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Clear()

void fxcrt::BinaryBuffer::Clear ( )

Definition at line 64 of file binary_buffer.cpp.

Referenced by CXFA_FMCallExpression::IsBuiltInFunc(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ DeleteBuf()

void fxcrt::BinaryBuffer::DeleteBuf ( size_t start_index,
size_t count )
protected

Definition at line 42 of file binary_buffer.cpp.

◆ DetachBuffer()

DataVector< uint8_t > fxcrt::BinaryBuffer::DetachBuffer ( )

Definition at line 68 of file binary_buffer.cpp.

◆ EstimateSize()

void fxcrt::BinaryBuffer::EstimateSize ( size_t size)

Definition at line 74 of file binary_buffer.cpp.

◆ ExpandBuf()

void fxcrt::BinaryBuffer::ExpandBuf ( size_t size)
protected

Definition at line 79 of file binary_buffer.cpp.

◆ GetLength()

size_t fxcrt::BinaryBuffer::GetLength ( ) const
virtual

Reimplemented in fxcrt::WideTextBuffer.

Definition at line 60 of file binary_buffer.cpp.

◆ GetMutableSpan()

pdfium::span< uint8_t > fxcrt::BinaryBuffer::GetMutableSpan ( )

Definition at line 52 of file binary_buffer.cpp.

◆ GetSize()

size_t fxcrt::BinaryBuffer::GetSize ( ) const
inline

Definition at line 34 of file binary_buffer.h.

◆ GetSpan()

pdfium::span< const uint8_t > fxcrt::BinaryBuffer::GetSpan ( ) const

Definition at line 56 of file binary_buffer.cpp.

Referenced by fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ IsEmpty()

bool fxcrt::BinaryBuffer::IsEmpty ( ) const
inline

Definition at line 33 of file binary_buffer.h.

Referenced by fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

BinaryBuffer & fxcrt::BinaryBuffer::operator= ( BinaryBuffer && that)
noexcept

Definition at line 31 of file binary_buffer.cpp.

◆ operator=() [2/2]

BinaryBuffer & fxcrt::BinaryBuffer::operator= ( const BinaryBuffer & that)
delete

◆ SetAllocStep()

void fxcrt::BinaryBuffer::SetAllocStep ( size_t step)
inline

Definition at line 38 of file binary_buffer.h.

Member Data Documentation

◆ m_AllocStep

size_t fxcrt::BinaryBuffer::m_AllocStep = 0
protected

Definition at line 54 of file binary_buffer.h.

◆ m_buffer

DataVector<uint8_t> fxcrt::BinaryBuffer::m_buffer
protected

Definition at line 56 of file binary_buffer.h.

◆ m_DataSize

size_t fxcrt::BinaryBuffer::m_DataSize = 0
protected

Definition at line 55 of file binary_buffer.h.


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