|
xdrpp
RFC4506 XDR compiler and message library
|
A string with a maximum length (returned by xstring::max_size()). More...
#include <types.h>


Public Types | |
| using | string = std::string |
Public Member Functions | |
| void | validate () const |
| Check that the string length is not greater than the maximum size. More... | |
| xstring (const xstring &)=default | |
| xstring (xstring &&)=default | |
| xstring & | operator= (const xstring &)=default |
| xstring & | operator= (xstring &&)=default |
| template<typename... Args> | |
| xstring (Args &&...args) | |
| char * | data () |
| void | resize (size_type n) |
| void | resize (size_type n, char ch) |
Static Public Member Functions | |
| static Constexpr uint32_t | max_size () |
| Return the maximum size allowed by the type. | |
| static void | check_size (size_t n) |
| Check whether a size is in bounds. | |
A string with a maximum length (returned by xstring::max_size()).
Note that you can exceed the size, but an error will happen when marshaling or unmarshaling the data structure.
|
inline |
1.8.13