libexplain  1.4.D001
Functions
libexplain/buffer/int32_t.h File Reference
#include <libexplain/ac/stdint.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_int32_t (explain_string_buffer_t *sb, int32_t data)
void explain_buffer_int32_array (explain_string_buffer_t *sb, const int32_t *data, size_t data_size)
int explain_int32_array_all_zero (const int32_t *data, size_t data_size)
void explain_buffer_uint32_t (explain_string_buffer_t *sb, uint32_t data)
void explain_buffer_uint32_array (explain_string_buffer_t *sb, const uint32_t *data, size_t data_size)
int explain_uint32_array_all_zero (const uint32_t *data, size_t data_size)

Function Documentation

void explain_buffer_int32_array ( explain_string_buffer_t sb,
const int32_t *  data,
size_t  data_size 
)

The explain_buffer_int32_array function may be used to print a representation of an array of int32_t values.

Parameters:
sbThe string buffer to print into.
dataThe int32_t array to be printed.
data_sizeThe number of elements in the array to be printed.

Definition at line 32 of file int32_t.c.

void explain_buffer_int32_t ( explain_string_buffer_t sb,
int32_t  data 
)

The explain_buffer_int32_t function may be used to print a representation of a int32_t value.

Parameters:
sbThe string buffer to print into.
dataThe int32_t value to be printed.

Definition at line 25 of file int32_t.c.

void explain_buffer_uint32_array ( explain_string_buffer_t sb,
const uint32_t *  data,
size_t  data_size 
)

The explain_buffer_uint32_array function may be used to print a representation of an array of uint32_t values.

Parameters:
sbThe string buffer to print into.
dataThe uint32_t array to be printed.
data_sizeThe number of elements in the array to be printed.

Definition at line 76 of file int32_t.c.

void explain_buffer_uint32_t ( explain_string_buffer_t sb,
uint32_t  data 
)

The explain_buffer_uint32_t function may be used to print a representation of a uint32_t value.

Parameters:
sbThe string buffer to print into.
dataThe uint32_t value to be printed.

Definition at line 69 of file int32_t.c.

int explain_int32_array_all_zero ( const int32_t *  data,
size_t  data_size 
)

The explain_int32_array_all_zero function may be used to test an int32_t array, to see if all the values are zero.

Parameters:
dataThe int32_t array to be tested.
data_sizeThe number of elements in the array to be tested.

Definition at line 55 of file int32_t.c.

int explain_uint32_array_all_zero ( const uint32_t *  data,
size_t  data_size 
)

The explain_uint32_array_all_zero function may be used to test an uint32_t array, to see if all the values are zero.

Parameters:
dataThe uint32_t array to be tested.
data_sizeThe number of elements in the array to be tested.

Definition at line 99 of file int32_t.c.