HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT::Format::Writer Struct Reference

#include <UT_Format.h>

+ Inheritance diagram for UT::Format::Writer:

Public Member Functions

 Writer ()
 
 Writer (char *buffer, size_t buffer_size)
 
void setBuffer (char *buffer, size_t buffer_size)
 
size_t operator() (const char *begin, const char *end)
 

Additional Inherited Members

- Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable
 UT_NonCopyable ()=default
 
 ~UT_NonCopyable ()=default
 
 UT_NonCopyable (const UT_NonCopyable &)=delete
 
UT_NonCopyableoperator= (const UT_NonCopyable &)=delete
 

Detailed Description

A writer class that writes to a raw character buffer. If initializing with a default constructor, the writer won't store anything. This can be useful to count the number of bytes required for storage before allocating a buffer for the final result.

Definition at line 269 of file UT_Format.h.

Constructor & Destructor Documentation

UT::Format::Writer::Writer ( )
inline

Definition at line 271 of file UT_Format.h.

UT::Format::Writer::Writer ( char *  buffer,
size_t  buffer_size 
)
inline

Definition at line 275 of file UT_Format.h.

Member Function Documentation

size_t UT::Format::Writer::operator() ( const char *  begin,
const char *  end 
)
inline

Definition at line 285 of file UT_Format.h.

void UT::Format::Writer::setBuffer ( char *  buffer,
size_t  buffer_size 
)
inline

Definition at line 279 of file UT_Format.h.


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