Previous: , Up: serialiser   [Contents][Index]


6.2 serialiser trait: operations

Function: ccstructs_serialiser_T ccname_new(ccstructs_serialiser_T) (ccstructs_core_t const * S, ccname_trait_table_type(ccstructs_serialiser_T) const * M)

Trait constructor. Return a new trait struct given a pointer to the source struct and a pointer to the trait methods.

Function: ccstructs_core_t const * ccstructs_serialiser_self (ccstructs_serialiser_T I)

Return a pointer to the struct to which the trait belongs.

Function: size_t ccstructs_serialiser_required_size (ccstructs_serialiser_T I)

Apply the method required_size() to the given argument.

Function: ccmem_block_t ccstructs_serialiser_write (cce_destination_t L, ccstructs_serialiser_T I, ccmem_block_t B)

Apply the method write() to the given arguments. If an error occurs: raise an exception by performing a non–local exit to L.


Previous: , Up: serialiser   [Contents][Index]

This document describes version 0.3.0-devel.3 of CCStructs.