NULL_ITER_DATA

Table of Contents

NULL_ITER_DATA

Description

Type specific NULL for data type Iter object is iterating over. Use this instead of NULL when comparing for nullity of Iter objects of same type. Null value for Iter element pointers

Parameters

NameDirectionDescription
miinType reference

Usage example (Cross-references)

    (ITER_DATA_TYPE(mi) *)(((u64)(mi)->data) +                                                                    \
    (mi)->pos * ALIGN_UP(sizeof(ITER_DATA_TYPE(mi)), (mi)->alignment)) :                   \
    NULL_ITER_DATA(mi))
    
    ///

Share :

Related Posts

IterPos

IterPos Description If there’s space left to read in memory region we’re iterating over, then return a pointer to current read position.

Read More

NULL_ITER

NULL_ITER Description Type specific NULL for given Iter object. Use this instead of NULL when comparing for nullity of Iter objects of same type. Null value for Iter objects

Read More

IterRead

IterRead Description Read object from memory iter, given that - Provided Iter object is not NULL_ITER(mi). - There’s space left to read. - Length of object data is being read into is an integral multiple of size of data type this memory iter is iterating over.

Read More