Go to the source code of this file.
Classes | |
struct | igtl_string_header |
Macros | |
#define | IGTL_STRING_HEADER_SIZE 4 |
Functions | |
void igtl_export | igtl_string_convert_byte_order (igtl_string_header *header) |
igtl_uint64 igtl_export | igtl_string_get_crc (igtl_string_header *header, void *string) |
igtl_uint32 igtl_export | igtl_string_get_string_length (igtl_string_header *header) |
#define IGTL_STRING_HEADER_SIZE 4 |
Definition at line 23 of file igtl_string.h.
void igtl_export igtl_string_convert_byte_order | ( | igtl_string_header * | header | ) |
Converts endianness from host byte order to network byte order, or vice versa. NOTE: It is developer's responsibility to have the string body with BOM (byte order mark) or in big endian ordrer.
igtl_uint64 igtl_export igtl_string_get_crc | ( | igtl_string_header * | header, |
void * | string | ||
) |
Calculates CRC of image data body including header and array of pixel data.
igtl_uint32 igtl_export igtl_string_get_string_length | ( | igtl_string_header * | header | ) |
Calculates size of the pixel array, which will be transferred with the specified header.