xargs.h

Provide methods to get access function parameters

Article - About this type


Type

  typedef builtin xa_list;
    Parameter iterator


Function

  long xa_align_of(size_t size);
    Get the size after align

  void xa_start(xa_list &list, void *begin, size_t begin_size);
    Start a iterator, point it to the first position of the var argument table

  void xa_arg(xa_list &list, size_t size, void *copyto);
    Get the next argument

  void xa_end(xa_list &list);
    Close the iterator instance


Variable

  const size_t XA_ALIGN;
    Represents the align bytes of the parameters

头文件

xargs.h

提供可变参数函数获取参数的方法

关于此类型的介绍文章


类型

  typedef builtin xa_list;
    参数迭代器


函数

  long xa_align_of(size_t size);
    获取一个大小在对齐后的大小

  void xa_start(xa_list &list, void *begin, size_t begin_size);
    开启一个迭代器,并将其指向变长参数的前一个参数位置

  void xa_arg(xa_list &list, size_t size, void *copyto);
    获取下一个参数

  void xa_end(xa_list &list);
    关闭参数迭代器


变量

  const size_t XA_ALIGN;
    表示参数的对其字节数