Rocket::Core::StringStorage Class Reference

#include <StringStorage.h>


Public Types

typedef void * StringID

Static Public Member Functions

static void ClearPools ()
 Clears all shared strings from the string pools.
static char * ReallocString (char *string, size_t old_length, size_t new_length, size_t character_size)
 Alloc/Realloc a string.
static void ReleaseString (char *string, size_t length)
 Release a previously allocated string.
static StringID AddString (const char *&string, size_t string_length, size_t character_size)
static void AddReference (StringID id)
static void RemoveReference (StringID id)

Static Public Attributes

static char * empty_string = empty_string_buffer

Friends

class LibraryMain

Detailed Description

Storage interface for StringBase
Author:
Lloyd Weehuizen

Member Function Documentation

StringStorage::StringID Rocket::Core::StringStorage::AddString ( const char *&  string,
size_t  string_length,
size_t  character_size 
) [static]

Adds or increases the reference count on the given string

Parameters:
string[in,out] String to add to the storage, returns new address of string
string_length The length of the new string
character_size Number of bytes of an individual parameter

void Rocket::Core::StringStorage::AddReference ( StringID  id  )  [static]

Adds a reference to the given string id

Parameters:
id Id of the string to add a reference to

void Rocket::Core::StringStorage::RemoveReference ( StringID  id  )  [static]

Removes a reference from the given string id

Parameters:
id Id of the string to remove a reference from


The documentation for this class was generated from the following files: