Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
afw_safe_cast.h File Reference

Safe cast functions. More...

#include "afw_interface.h"
#include <limits.h>

Go to the source code of this file.

Functions

afw_size_t afw_safe_cast_off_to_size (afw_off_t off, afw_xctx_t *xctx)
 Safely cast afw_off_t to afw_size_t. More...
 
afw_size_t afw_safe_cast_integer_to_size (afw_integer_t integer, afw_xctx_t *xctx)
 Safely cast afw_integer_t to afw_size_t. More...
 
int afw_safe_cast_integer_to_int (afw_integer_t integer, afw_xctx_t *xctx)
 Safely cast afw_integer_t to int. More...
 
int afw_safe_cast_size_to_int (afw_size_t size, afw_xctx_t *xctx)
 Safely cast afw_size_t to int. More...
 
afw_integer_t afw_safe_cast_size_to_integer (afw_size_t size, afw_xctx_t *xctx)
 Safely cast afw_size_t to afw_integer_t. More...
 
afw_int32_t afw_safe_cast_size_to_int32 (afw_size_t size, afw_xctx_t *xctx)
 Safely cast afw_size_t to afw_int32_t. More...
 
afw_uint32_t afw_safe_cast_size_to_uint32 (afw_size_t size, afw_xctx_t *xctx)
 Safely cast afw_size_t to afw_uint32_t. More...
 

Detailed Description

Safe cast functions.

Definition in file afw_safe_cast.h.