8 #ifndef CNSTRINGELEMENT_H
9 #define CNSTRINGELEMENT_H
static void CNRetainStringElement(struct CNStringElement *dst)
Retain the reference count of string element.
Definition: CNStringElement.h:50
Forward declaration of data types.
Information to present memory profile.
Definition: CNMemoryProfile.h:16
size_t maxContextSize
Definition: CNStringElement.h:20
unsigned char * CNContextOfStringElement(const struct CNStringElement *src)
Get context of the string element.
struct CNStringElement * CNCopyStringElement(const struct CNStringElement *src, struct CNResource *resource)
Allocate a copy of source string element.
struct CNStringElement * CNAllocateStringElement(size_t len, const unsigned char *str, struct CNResource *resource)
Allocate string element.
static size_t CNContextLengthOfStringElement(const struct CNStringElement *src)
Get context length of the string element.
Definition: CNStringElement.h:77
void CNReleaseStringElement(struct CNResource *resource, struct CNStringElement *dst)
Release the reference count of string element.
Definition: CNStringElement.h:16
struct CNMemoryProfile CNProfileOfStringElement(const struct CNStringElement *src)
Get memory profile of string element.
size_t referenceCount
Definition: CNStringElement.h:18
static size_t CNMaxContextSizeOfStringElement(const struct CNStringElement *src)
Get max context size of string elemnet.
Definition: CNStringElement.h:88
size_t currentContextLength
Definition: CNStringElement.h:22