Skip to main content

var::Data

Functions

Data()=default#

var::Data::Data ()=default

Data(size_t size)#

explicit

var::Data::Data (size_t size)

Data(std::initializer_list< u8 > il)#

inline

var::Data::Data (std::initializer_list< u8 > il)

add_null_terminator()#

const char * var::Data::add_null_terminator ()

Type: const char *

append(View view)#

Data & var::Data::append (View view)

Type: Data &

Parameters:

capacity() const#

inline

u32 var::Data::capacity () const

Type: u32

copy(View a, const Copy &options=Copy())#

Data & var::Data::copy (View a, const Copy &options=Copy())

Type: Data &

Parameters:

data()#

inline

void * var::Data::data ()

Type: void *

data() const#

inline

const void * var::Data::data () const

Type: const void *

data_u8()#

inline

u8 * var::Data::data_u8 ()

Type: u8 *

data_u8() const#

inline

const u8 * var::Data::data_u8 () const

Type: const u8 *

erase(const Erase &options)#

inline

Data & var::Data::erase (const Erase &options)

Type: Data &

Parameters:

free()#

inline

Data & var::Data::free ()

Type: Data &

operator!=(const var::Data &data) const#

inline

bool var::Data::operator!= (const var::Data &data) const

Type: bool

Parameters:

operator()(const Erase &options)#

inline

Data & var::Data::operator() (const Erase &options)

Type: Data &

Parameters:

operator<(const var::Data &data) const#

inline

bool var::Data::operator< (const var::Data &data) const

Type: bool

Parameters:

operator==(const var::Data &data) const#

inline

bool var::Data::operator== (const var::Data &data) const

Type: bool

Parameters:

operator>(const var::Data &data) const#

inline

bool var::Data::operator> (const var::Data &data) const

Type: bool

Parameters:

reserve(size_t size)#

inline

Data & var::Data::reserve (size_t size)

Type: Data &

Parameters:

  • size_t size

resize(size_t size)#

Data & var::Data::resize (size_t size)

Type: Data &

Parameters:

  • size_t size

size() const#

inline

size_t var::Data::size () const

Type: size_t

size_signed() const#

inline

ssize_t var::Data::size_signed () const

Type: ssize_t

string_view() const#

StringView var::Data::string_view () const

Type: StringView

view()#

inline

View var::Data::view ()

Type: View

view() const#

inline

View var::Data::view () const

Type: View

Static Functions

block_size()#

static u32 var::Data::block_size ()

Type: u32

from_string(var::StringView value)#

static Data var::Data::from_string (var::StringView value)

Type: Data

Parameters:

minimum_capacity()#

static u32 var::Data::minimum_capacity ()

Type: u32

reclaim_heap_space()#

inline

static void var::Data::reclaim_heap_space ()

Type: void