Static Public Methods | |
| void | copy (void *dst, const void *src, size_t length) throw () |
| Block copy of memory from 'src' to 'dst' on 'length' bytes. | |
| void | move (void *dst, const void *src, size_t length) throw () |
| Block copy of memory from 'src' to 'dst' on 'length' bytes. | |
| void | zero (void *dst, size_t length) throw () |
| Sets the memory area starting at 'dst' on 'length' bytes to 0. | |
| void | fill (void *dst, size_t length, word8 value) throw () |
| Sets the memory area starting at 'dst' on 'length' bytes to 'value'. | |
| int | compare (const void *a, const void *b, size_t length) throw () |
| Compares two memory buffers using lexicographic order. | |
| void | sleep (int milliseconds) |
| Pause the program without consuming CPU. | |
| std::string | uuid () |
| Generate a unique string id. | |
| word64 | memoryFootprint () |
| Obtain the memory footprint of this program in the operating system. | |
| std::string | errorMessage (int error) |
| Returns a textual message for an operating-system error. | |
| std::string | hostName () |
| Obtain the hostname of this machine. | |
| std::string | userName () |
| Obtain the current user login name. | |
| std::string | applicationPath () |
| Obtain the path to where this application binary is. | |
Static Public Attributes | |
| ACE_Thread_Mutex | consoleMutex |
| A global mutex to guard all access to the console (std::cout). | |
|
|
Obtain the path to where this application binary is.
|
|
||||||||||||||||
|
Compares two memory buffers using lexicographic order. Compares the buffers at 'a' and at 'b' on length 'length' and returns
|
|
||||||||||||||||
|
Block copy of memory from 'src' to 'dst' on 'length' bytes. The memory areas must not overlap, otherwise the result is undefined. If you need overlapping buffers, use move. copy is, however, faster.
|
|
|
Returns a textual message for an operating-system error.
|
|
||||||||||||||||
|
Sets the memory area starting at 'dst' on 'length' bytes to 'value'. If you need to set memory to 'value=0', use the zero method whith is faster on some operating systems.
|
|
|
Obtain the hostname of this machine.
|
|
|
Obtain the memory footprint of this program in the operating system. This is not the exact amount of memory allocated by the program. It can be bigger if the malloc()/new() implementation decides to allocate more than required (handle pools). It can be smaller if part of the program code or data has been swapped out of memory. |
|
||||||||||||||||
|
Block copy of memory from 'src' to 'dst' on 'length' bytes. The memory areas can overlap. If your buffers do not overlap, use copy, which is faster.
|
|
|
Pause the program without consuming CPU. Pause the program for 'milliseconds' milliseconds without consuming CPU cycles. The precision of the pause's length may vary depending on the actual operating system implementation. |
|
|
Obtain the current user login name.
|
|
|
Generate a unique string id.
|
|
||||||||||||
|
Sets the memory area starting at 'dst' on 'length' bytes to 0. Always use this method rather than fill with a '0' value, because on some operating systems it is faster.
|
|
|
A global mutex to guard all access to the console (std::cout).
|
1.3-rc2