SBufReservationRequirements Class Reference

Named SBuf::reserve() parameters. Defaults ask for and restrict nothing. More...

#include <SBuf.h>

Collaboration diagram for SBufReservationRequirements:

Public Types

typedef SBuf::size_type size_type
 

Public Attributes

size_type idealSpace = 0
 if allocating anyway, provide this much space More...
 
size_type minSpace = 0
 allocate [at least this much] if spaceSize() is smaller More...
 
size_type maxCapacity = SBuf::maxSize
 do not allocate more than this More...
 
bool allowShared = true
 whether sharing our storage with others is OK More...
 

Detailed Description

Definition at line 696 of file SBuf.h.

Member Typedef Documentation

◆ size_type

Member Data Documentation

◆ allowShared

bool SBufReservationRequirements::allowShared = true

Definition at line 709 of file SBuf.h.

Referenced by Server::maybeMakeSpaceAvailable(), SBuf::reserve(), and TestSBuf::testReserve().

◆ idealSpace

size_type SBufReservationRequirements::idealSpace = 0

Definition at line 706 of file SBuf.h.

Referenced by Server::maybeMakeSpaceAvailable(), SBuf::reserve(), and TestSBuf::testReserve().

◆ maxCapacity

size_type SBufReservationRequirements::maxCapacity = SBuf::maxSize

Definition at line 708 of file SBuf.h.

Referenced by Server::maybeMakeSpaceAvailable(), SBuf::reserve(), and TestSBuf::testReserve().

◆ minSpace

size_type SBufReservationRequirements::minSpace = 0

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors