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


7.2 deserialiser trait: operations

Function: ccstructs_deserialiser_T ccname_new(ccstructs_deserialiser_T) (ccstructs_core_t const * S, ccname_trait_table_type(ccstructs_deserialiser_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_deserialiser_self (ccstructs_deserialiser_T I)

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

Function: size_t ccstructs_deserialiser_required_size (ccstructs_deserialiser_T I)

Apply the method required_size() to the given argument.

Function: ccmem_block_t ccstructs_deserialiser_read (cce_destination_t L, ccstructs_deserialiser_T I, ccmem_block_t B)

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


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

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