BlockString

class BlockString

BlockStrings are good for serializing strings when read/write order is not guarenteed.

BlockStrings’ data lives in String in a string block, and therefore can be moved.

Summary
BlockStringBlockStrings are good for serializing strings when read/write order is not guarenteed.
Functions
BlockStringConstructs an empty block string.
Index
dataA chararcter pointer to the data.
c_strA chararcter pointer to NUL terminated data.
FragmentCasts this string to a Fragment
ConstStringCasts this string to a ConstString
boolfalse if the string is not set.

Functions

BlockString

BlockString()

Constructs an empty block string.

Index

int Index() const

data

const char *data() const

Returns

A chararcter pointer to the data.

c_str

const char *c_str() const

Returns

A chararcter pointer to NUL terminated data.

Fragment

operator Fragment() const

Casts this string to a Fragment

ConstString

operator ConstString() const

Casts this string to a ConstString

bool

operator bool() const

false if the string is not set.

class BlockString
BlockStrings are good for serializing strings when read/write order is not guarenteed.
BlockString()
Constructs an empty block string.
int Index() const
const char *data() const
A chararcter pointer to the data.
const char *c_str() const
A chararcter pointer to NUL terminated data.
operator Fragment() const
Casts this string to a Fragment
operator ConstString() const
Casts this string to a ConstString
operator bool() const
false if the string is not set.
Close