interfaces of function which deals with memory More...

Go to the source code of this file.
Functions | |
| void | fillarray (void *p, void *value, size_t size, size_t n) |
| This function assigns the specified value to each element. More... | |
| void | fillzero (void *p, size_t n) |
| This function fills a block of memory zeros. More... | |
| bool | isbigendian () |
| judges whether the system is big endian More... | |
| bool | islittleendian () |
| gets the system is little endian More... | |
| void | memreverse (void *p, size_t n) |
| reverse memory (ex. Big Endian <-> Little Endian) More... | |
| void | memswap (void *p0, void *p1, size_t n) |
| swaps memory ( p0 <-> p1 ) More... | |
interfaces of function which deals with memory
Copyright(C) 2006-2014 Eisai Co., Ltd. All rights reserved.
Definition in file MemoryFunctions.h.
| void fillarray | ( | void * | p, |
| void * | value, | ||
| size_t | size, | ||
| size_t | n | ||
| ) |
This function assigns the specified value to each element.
| [out] | p | array |
| [in] | value | specified value |
| [in] | size | size of element |
| [in] | n | size of array |
Definition at line 20 of file MemoryFunctions.cpp.
| void fillzero | ( | void * | p, |
| size_t | n | ||
| ) |
This function fills a block of memory zeros.
| [out] | p | pointer to starting addres of the block of memory to fill with zeros. |
| [in] | n | size of the block of memory to fill with zeros. |
Definition at line 35 of file MemoryFunctions.cpp.

| bool isbigendian | ( | ) |
judges whether the system is big endian
Definition at line 42 of file MemoryFunctions.cpp.
| bool islittleendian | ( | ) |
gets the system is little endian
Definition at line 53 of file MemoryFunctions.cpp.

| void memreverse | ( | void * | p, |
| size_t | n | ||
| ) |
reverse memory (ex. Big Endian <-> Little Endian)
| [in,out] | p | the address of memory |
| [in] | n | memory size |
Definition at line 58 of file MemoryFunctions.cpp.
| void memswap | ( | void * | p0, |
| void * | p1, | ||
| size_t | n | ||
| ) |
swaps memory ( p0 <-> p1 )
| [in,out] | p0 | the address of memory to be swapped |
| [in,out] | p1 | the address of memory to swap |
| [in] | n | memory size |
Definition at line 81 of file MemoryFunctions.cpp.
1.8.6