potion  0.2
 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 317 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 756 of file potion.h.

Field Documentation

PNData::PN_OBJECT_HEADER

PNType vt; PNUniq uniq.

Definition at line 318 of file potion.h.

PN_SIZE PNData::siz

Definition at line 319 of file potion.h.

char PNData::data[]

Definition at line 320 of file potion.h.


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