Mon Oct 8 12:39:31 2012

Asterisk developer's documentation


ast_str Struct Reference

The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field to indicate the type of storage. Three special constants indicate malloc, alloca() or static variables, all other values indicate a struct ast_threadstorage pointer. More...

#include <strings.h>


Data Fields

size_t __AST_STR_LEN
char __AST_STR_STR [0]
ast_threadstorage__AST_STR_TS
size_t __AST_STR_USED


Detailed Description

The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field to indicate the type of storage. Three special constants indicate malloc, alloca() or static variables, all other values indicate a struct ast_threadstorage pointer.

Definition at line 364 of file strings.h.


Field Documentation

size_t __AST_STR_LEN

The current maximum length of the string

Definition at line 365 of file strings.h.

Referenced by __ast_str_helper2().

char __AST_STR_STR[0]

The string buffer

Definition at line 371 of file strings.h.

struct ast_threadstorage* __AST_STR_TS

What kind of storage is this ?

Definition at line 367 of file strings.h.

size_t __AST_STR_USED

Amount of space used

Definition at line 366 of file strings.h.

Referenced by ast_str_make_space().


The documentation for this struct was generated from the following file:
Generated on Mon Oct 8 12:39:31 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7