61 Block(
const size_t size_);
64 Block(
const char*
const data,
const size_t size_);
71 void assign(
const char*
const data,
const size_t size_);
Topmost namespace for the fastcgi++ library.
void assign(const char *const data, const size_t size_)
Assign a sequence a data to the block.
size_t size() const
See the relevant data size.
size_t m_reserve
Total bytes allocated.
size_t m_size
Size of relevant part of data allocation.
std::unique_ptr< char[]> m_data
Point to allocated data.
size_t reserve() const
See the reserve size.
const char * end() const
Constant pointer to 1+ the last element.
void clear()
Deallocate memory and set size and reserve to zero.
Block & operator=(Block &&x)
Steal the data from another block.
char * end()
Pointer to 1+ the last element.
Block()
Initialize an empty block.
Data structure to hold a block of raw data.
const char * begin() const
Constant pointer to the first element.
char * begin()
Pointer to the first element.