p2  0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PNData Struct Reference

struct to wrap arbitrary data that we may want to allocate from Potion. More...

#include <potion.h>

Public Member Functions

#define PN_DATA(x)   ((struct PNData *)(x))->data
 
static struct PNDatapotion_data_alloc (Potion *P, int siz)
 

Data Fields

 PN_OBJECT_HEADER
 PNType vt; PNUniq uniq. More...
 
PN_SIZE siz
 
char data []
 

Detailed Description

struct to wrap arbitrary data that we may want to allocate from Potion.

constructor: potion_data_alloc() accessor: PN_DATA()

Definition at line 326 of file potion.h.

Member Function Documentation

static struct PNData * potion_data_alloc ( Potion P,
int  siz 
)

default constructor for PNData user-objects, as PN_TUSER type

See also
also PNWeakRef to store external pointers only

Definition at line 765 of file potion.h.

Field Documentation

PNData::PN_OBJECT_HEADER

PNType vt; PNUniq uniq.

Definition at line 327 of file potion.h.

PN_SIZE PNData::siz

Definition at line 328 of file potion.h.

char PNData::data[]

Definition at line 329 of file potion.h.


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