simstr 1.2.4
Yet another strings library
 
Loading...
Searching...
No Matches
simstr::chunked_string_builder< K >::portion_store Struct Reference

An object that allows you to sequentially copy content into a buffer of a given size. More...

#include <sstring.h>

Public Member Functions

bool is_end ()
 Check that the data has not yet run out.
 
size_t store (K *buffer, size_t size)
 Save the next portion of data to the buffer.
 

Detailed Description

template<typename K>
struct simstr::chunked_string_builder< K >::portion_store

An object that allows you to sequentially copy content into a buffer of a given size.

Member Function Documentation

◆ store()

template<typename K>
size_t simstr::chunked_string_builder< K >::portion_store::store ( K * buffer,
size_t size )
inline

Save the next portion of data to the buffer.

Parameters
buffer- pointer to the buffer for storing data.
size- buffer size.
Returns
size_t - the number of CHARACTERS (not bytes) copied.

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