libzypp 17.31.7
zypp::str::SafeBuf Struct Reference

Assert free called for allocated char *. More...

#include <base/String.h>

Public Member Functions

 SafeBuf ()
 ~SafeBuf ()
std::string asString () const

Public Attributes

char * _buf

Detailed Description

Assert free called for allocated char *.

SafeBuf safe;
vasprintf( &safe._buf, format, ap );
return safe.asString();

Definition at line 190 of file String.h.

Constructor & Destructor Documentation

◆ SafeBuf()

zypp::str::SafeBuf::SafeBuf ( )

Definition at line 193 of file String.h.

◆ ~SafeBuf()

zypp::str::SafeBuf::~SafeBuf ( )

Definition at line 194 of file String.h.

Member Function Documentation

◆ asString()

std::string zypp::str::SafeBuf::asString ( ) const

Definition at line 195 of file String.h.

Member Data Documentation

◆ _buf

char* zypp::str::SafeBuf::_buf

Definition at line 192 of file String.h.

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