IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::varstring Namespace Reference

Functions

auto allocate_exact (ice::Allocator &alloc, ice::ncount size, ice::usize &out_bytes) noexcept -> char *
auto create (ice::Allocator &alloc, ice::String str) noexcept -> char *
auto calc_required_size (ice::ncount size) noexcept -> ice::usize
auto read_size (char const *data, ice::usize &out_bytes) noexcept -> ice::ncount
auto read_size (char const *data) noexcept -> ice::ncount
template<typename CharType>
auto read_data (CharType *data) noexcept -> CharType *
auto write_size (void *data, ice::ncount size) noexcept -> ice::ncount

Function Documentation

◆ allocate_exact()

auto ice::varstring::allocate_exact ( ice::Allocator & alloc,
ice::ncount size,
ice::usize & out_bytes ) -> char *
inlinenoexcept

◆ calc_required_size()

auto ice::varstring::calc_required_size ( ice::ncount size) -> ice::usize
inlinenoexcept

◆ create()

auto ice::varstring::create ( ice::Allocator & alloc,
ice::String str ) -> char *
inlinenoexcept

◆ read_data()

template<typename CharType>
auto ice::varstring::read_data ( CharType * data) -> CharType *
inlinenoexcept

◆ read_size() [1/2]

auto ice::varstring::read_size ( char const * data) -> ice::ncount
inlinenoexcept

◆ read_size() [2/2]

auto ice::varstring::read_size ( char const * data,
ice::usize & out_bytes ) -> ice::ncount
inlinenoexcept

◆ write_size()

auto ice::varstring::write_size ( void * data,
ice::ncount size ) -> ice::ncount
inlinenoexcept