Atrinik Server 2.5
Data Fields
_shared_string Struct Reference

#include <shstr.h>

Data Fields

union {
   struct _shared_string **   array
   struct _shared_string *   previous
u
struct _shared_stringnext
unsigned REFCOUNT_TYPE refcount
char string [PADDING]

Detailed Description

One actual shared string.

Definition at line 95 of file shstr.h.


Field Documentation

Next shared string.

Definition at line 105 of file shstr.h.

unsigned REFCOUNT_TYPE _shared_string::refcount

The top bit of "refcount" is used to signify that "u.array" points at the array entry.

Definition at line 110 of file shstr.h.

char _shared_string::string[PADDING]

Padding will be unused memory, since we can't know how large the padding when allocating memory. We assume here that sizeof(long) is a good boundary.

Definition at line 116 of file shstr.h.


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