Classes | Functions
Typelib::Packing Namespace Reference

Classes

struct  FoundNullStructure
struct  FoundUnion
struct  PackingUnknown

Functions

int getOffsetOf (const Field &last_field, const Type &append_field, size_t packing)
int getOffsetOf (Compound const &last_field, const Type &append_field, size_t packing)
int getOffsetOf (Compound const &compound, Type const &append)
int getOffsetOf (Field const &last_field, Type const &append)
int getSizeOfCompound (Compound const &compound)

Function Documentation

int Typelib::Packing::getOffsetOf ( const Field last_field,
const Type append_field,
size_t  packing 
)

Returns the offset, in bytes, of a new field of type append to be appended after the given field. The field is expected to be aligned on packing bytes.

Definition at line 175 of file packing.cc.

int Typelib::Packing::getOffsetOf ( Compound const &  last_field,
const Type append_field,
size_t  packing 
)

Returns the offset, in bytes, of a new field of type append to be appended at the bottom of the given compound. The field is expected to be aligned on packing bytes.

Definition at line 182 of file packing.cc.

int Typelib::Packing::getOffsetOf ( Compound const &  compound,
Type const &  append 
)

Returns the offset, in bytes, of a new field of type append to be appended to the given compound. The alignment value is computed automatically

Definition at line 207 of file packing.cc.

int Typelib::Packing::getOffsetOf ( Field const &  last_field,
Type const &  append 
)

Returns the offset, in bytes, of a new field of type append to be appended after the field last_field. The alignment value is computed automatically

Definition at line 191 of file packing.cc.

int Typelib::Packing::getSizeOfCompound ( Compound const &  compound)

Returns the size in bytes of compound, as the compiler would round it

Definition at line 245 of file packing.cc.



typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:12