RTI Connext DDS Micro C API
Version 3.0.3
|
Generic hash interface definition. More...
Functions | |
void | OSAPI_Hash_initialize (OSAPI_Hash *self) |
initialize a OSAPI_Hash | |
RTI_BOOL | OSAPI_Hash_equals (const OSAPI_Hash *a, const OSAPI_Hash *b) |
Checks if two OSAPI_Hash are equal. | |
int | OSAPI_Hash_compare (const OSAPI_Hash *a, const OSAPI_Hash *b) |
Compare two hashes. | |
void | OSAPI_Hash_copy (OSAPI_Hash *out, const OSAPI_Hash *in) |
Copy a hash. | |
RTI_BOOL | OSAPI_Hash_is_valid (const OSAPI_Hash *self) |
Check if a OSAPI_Hash is valid. | |
RTI_UINT8 | OSAPI_Hash_length (const OSAPI_Hash *self) |
Returns the length in bytes of the OSAPI_Hash. | |
const RTI_UINT8 * | OSAPI_Hash_value (const OSAPI_Hash *self) |
Returns a array containing the OSAPI_Hash value. | |
void | OSAPI_Hash_reset (OSAPI_Hash *self) |
Marks a hash as invalid. | |
void | OSAPI_Hash_print (const OSAPI_Hash *self) |
Print a RTISampleHash. | |
void | OSAPI_Hash_compute_md5 (OSAPI_Hash *self, const char *in, unsigned int size) |
Computes the MD5 of a buffer. | |
void | OSAPI_Hash_compute_scatter_md5 (OSAPI_Hash *self, const char **in, unsigned int size, const unsigned int *elementSize) |
Computes the MD5 of a set of buffers and store the result in the output OSAPI_Hash. |
Generic hash interface definition.
void OSAPI_Hash_initialize | ( | OSAPI_Hash * | self | ) |
initialize a OSAPI_Hash
self | In. The hash to initialize |
RTI_BOOL OSAPI_Hash_equals | ( | const OSAPI_Hash * | a, |
const OSAPI_Hash * | b | ||
) |
Checks if two OSAPI_Hash are equal.
a | In. The first hash to compare |
b | In. The second hash to compare |
int OSAPI_Hash_compare | ( | const OSAPI_Hash * | a, |
const OSAPI_Hash * | b | ||
) |
Compare two hashes.
a | In. The first OSAPI_Hash to compare |
b | In. The first OSAPI_Hash to compare |
void OSAPI_Hash_copy | ( | OSAPI_Hash * | out, |
const OSAPI_Hash * | in | ||
) |
Copy a hash.
out | Out. The OSAPI_Hash where to copy |
in | In. The source OSAPI_Hash |
RTI_BOOL OSAPI_Hash_is_valid | ( | const OSAPI_Hash * | self | ) |
Check if a OSAPI_Hash is valid.
self | In. The OSAPI_Hash to check |
RTI_UINT8 OSAPI_Hash_length | ( | const OSAPI_Hash * | self | ) |
Returns the length in bytes of the OSAPI_Hash.
self | In. The OSAPI_Hash to get the length |
const RTI_UINT8* OSAPI_Hash_value | ( | const OSAPI_Hash * | self | ) |
Returns a array containing the OSAPI_Hash value.
self | In. The OSAPI_Hash to get the length |
void OSAPI_Hash_reset | ( | OSAPI_Hash * | self | ) |
Marks a hash as invalid.
self | In. The OSAPI_Hash to reset |
void OSAPI_Hash_print | ( | const OSAPI_Hash * | self | ) |
Print a RTISampleHash.
self | In. The OSAPI_Hash to print |
void OSAPI_Hash_compute_md5 | ( | OSAPI_Hash * | self, |
const char * | in, | ||
unsigned int | size | ||
) |
Computes the MD5 of a buffer.
self | Out. The output OSAPI_Hash |
in | In. The buffer to calculate the hash value |
size | In. The length of the buffer |
void OSAPI_Hash_compute_scatter_md5 | ( | OSAPI_Hash * | self, |
const char ** | in, | ||
unsigned int | size, | ||
const unsigned int * | elementSize | ||
) |
Computes the MD5 of a set of buffers and store the result in the output OSAPI_Hash.
self | Out. The output OSAPI_Hash |
in | In. Array of buffers that will be used to calculate the hash value |
size | In. The number of elements in the array of buffers |
elementSize | In. An array containing the size of the buffers in the in parameter |