Zserio C++ runtime library  1.4.0
Built for Zserio 2.18.1
zserio::ArrayPreallocation Class Reference

#include <BitStreamReader.h>

Public Member Functions

 ArrayPreallocation ()
 
 ArrayPreallocation (size_t alloc)
 
 operator size_t () const
 

Static Public Attributes

static constexpr size_t MAX_INITIAL_ARRAY_ALLOCATION = 128 * 1024
 

Detailed Description

Wrapper class to specify maximum initial array allocation.

Definition at line 21 of file BitStreamReader.h.

Constructor & Destructor Documentation

◆ ArrayPreallocation() [1/2]

zserio::ArrayPreallocation::ArrayPreallocation ( )
inline

Default constructor sets default array preallocation.

Definition at line 29 of file BitStreamReader.h.

◆ ArrayPreallocation() [2/2]

zserio::ArrayPreallocation::ArrayPreallocation ( size_t  alloc)
inlineexplicit

Constructor.

Parameters
allocSets custom maximum preallocation for arrays.

Definition at line 37 of file BitStreamReader.h.

Member Function Documentation

◆ operator size_t()

zserio::ArrayPreallocation::operator size_t ( ) const
inline

Gets the value for maximum array preallocation.

Definition at line 43 of file BitStreamReader.h.

Member Data Documentation

◆ MAX_INITIAL_ARRAY_ALLOCATION

constexpr size_t zserio::ArrayPreallocation::MAX_INITIAL_ARRAY_ALLOCATION = 128 * 1024
staticconstexpr

Definition at line 24 of file BitStreamReader.h.


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