Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
MemoryFunctions.h
Go to the documentation of this file.
1 
11 #ifndef __KOME_CORE_MEMORY_FUNCTIONS_H__
12 #define __KOME_CORE_MEMORY_FUNCTIONS_H__
13 
14 
23 void fillarray( void* p, void* value, size_t size, size_t n );
24 
31 void fillzero( void* p, size_t n );
32 
38 bool isbigendian();
39 
45 bool islittleendian();
46 
53 void memreverse( void* p, size_t n );
54 
62 void memswap( void* p0, void* p1, size_t n );
63 
64 
65 #endif // __KOME_CORE_MEMORY_FUNCTIONS_H__
void memswap(void *p0, void *p1, size_t n)
swaps memory ( p0 <-> p1 )
bool isbigendian()
judges whether the system is big endian
void fillarray(void *p, void *value, size_t size, size_t n)
This function assigns the specified value to each element.
bool islittleendian()
gets the system is little endian
void memreverse(void *p, size_t n)
reverse memory (ex. Big Endian <-> Little Endian)
void fillzero(void *p, size_t n)
This function fills a block of memory zeros.