Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
Classes | Macros | Functions
igtl_string.h File Reference
#include "igtl_win32header.h"
#include "igtl_util.h"
#include "igtl_types.h"
Include dependency graph for igtl_string.h:

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)
 

Macro Definition Documentation

#define IGTL_STRING_HEADER_SIZE   4

Definition at line 23 of file igtl_string.h.

Function Documentation

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.


Generated at Mon Nov 11 2013 00:36:46 for OpenIGTLink by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2012