Twitch SDK (Internal)
Public Member Functions | Static Public Attributes | List of all members
ttv::json::ValueAllocator Class Referenceabstract

Experimental do not use: Allocator to customize member name and string value memory management done by Value. More...

#include <value.h>

Public Member Functions

virtual ~ValueAllocator ()
 
virtual char * makeMemberName (const char *memberName)=0
 
virtual void releaseMemberName (char *memberName)=0
 
virtual char * duplicateStringValue (const char *value, unsigned int length=unknown)=0
 
virtual void releaseStringValue (char *value)=0
 

Static Public Attributes

static const unsigned int unknown = static_cast<unsigned int>(-1)
 

Detailed Description

Experimental do not use: Allocator to customize member name and string value memory management done by Value.

Constructor & Destructor Documentation

◆ ~ValueAllocator()

virtual ttv::json::ValueAllocator::~ValueAllocator ( )
virtual

Member Function Documentation

◆ duplicateStringValue()

virtual char* ttv::json::ValueAllocator::duplicateStringValue ( const char *  value,
unsigned int  length = unknown 
)
pure virtual

◆ makeMemberName()

virtual char* ttv::json::ValueAllocator::makeMemberName ( const char *  memberName)
pure virtual

◆ releaseMemberName()

virtual void ttv::json::ValueAllocator::releaseMemberName ( char *  memberName)
pure virtual

◆ releaseStringValue()

virtual void ttv::json::ValueAllocator::releaseStringValue ( char *  value)
pure virtual

Member Data Documentation

◆ unknown

const unsigned int ttv::json::ValueAllocator::unknown = static_cast<unsigned int>(-1)
static

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