#include <sajson.h>
Public Member Functions | |
char * | get_data () const |
size_t | length () const |
mutable_string_view () | |
Creates an empty, zero-sized view. More... | |
mutable_string_view (size_t length, char *data_) | |
mutable_string_view (const literal &s) | |
mutable_string_view (const string &s) | |
mutable_string_view (const mutable_string_view &that) | |
mutable_string_view (mutable_string_view &&that) | |
Move constructor - neuters the old mutable_string_view. More... | |
mutable_string_view & | operator= (mutable_string_view &&that) |
mutable_string_view & | operator= (const mutable_string_view &that) |
Private Attributes | |
internal::allocated_buffer | buffer |
char * | data |
size_t | length_ |
A pointer to a mutable buffer, its size in bytes, and strong ownership of any copied memory.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copies a mutable_string_view. If any backing memory has been allocated, its refcount is incremented - both views can safely use the memory.
|
inline |
Move constructor - neuters the old mutable_string_view.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |