This namespace provides a OS-independent interface to low-level functions.
Most of these functions are converted into calls to standard functions, unless we are into Visual Studio 2005 (or newer). In that case the secure version of the standard library functions (prefix "_s") are used instead.
Functions | |
void * | aligned_malloc (size_t bytes, size_t alignment) |
Returns an aligned memory block. More... | |
void * | aligned_calloc (size_t bytes, size_t alignment) |
Identical to aligned_malloc, but it zeroes the reserved memory block. More... | |
void * | aligned_realloc (void *old_ptr, size_t bytes, size_t alignment) |
Frees a memory block reserved by aligned_malloc. More... | |
void | aligned_free (void *p) |
Frees a memory block reserved by aligned_malloc. More... | |
template<typename _Tp > | |
_Tp * | align_ptr (_Tp *ptr, int n=(int) sizeof(_Tp)) |
Returns a pointer a bit forward in memory so it's aligned for the given boundary size. More... | |
int | sprintf (char *buf, size_t bufSize, const char *format,...) noexcept MRPT_printf_format_check(3 |
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compilers) More... | |
int int | vsprintf (char *buf, size_t bufSize, const char *format, va_list args) noexcept |
An OS-independent version of vsprintf (Notice the bufSize param, which may be ignored in some compilers) More... | |
int | vsnprintf (char *buf, size_t bufSize, const char *format, va_list args) noexcept |
An OS-independent version of vsnprintf (Notice the bufSize param, which may be ignored in some compilers) More... | |
FILE * | fopen (const char *fileName, const char *mode) noexcept |
An OS-independent version of fopen. More... | |
FILE * | fopen (const std::string &fileName, const char *mode) noexcept |
An OS-independent version of fopen (std::string version) More... | |
int | fprintf (FILE *fil, const char *format,...) noexcept MRPT_printf_format_check(2 |
An OS-independent version of fprintf. More... | |
int void | fclose (FILE *f) |
An OS-independent version of fclose. More... | |
char * | strcat (char *dest, size_t destSize, const char *source) noexcept |
An OS-independent version of strcat. More... | |
char * | strcpy (char *dest, size_t destSize, const char *source) noexcept |
An OS-independent version of strcpy. More... | |
int | _strcmp (const char *str1, const char *str2) noexcept |
An OS-independent version of strcmp. More... | |
int | _strcmpi (const char *str1, const char *str2) noexcept |
An OS-independent version of strcmpi. More... | |
int | _strncmp (const char *str, const char *subStr, size_t count) noexcept |
An OS-independent version of strncmp. More... | |
int | _strnicmp (const char *str, const char *subStr, size_t count) noexcept |
An OS-independent version of strnicmp. More... | |
int64_t | _strtoll (const char *nptr, char **endptr, int base) |
An OS-independent version of strtoll. More... | |
uint64_t | _strtoull (const char *nptr, char **endptr, int base) |
An OS-independent version of strtoull. More... | |
time_t | timegm (struct tm *tm) |
An OS-independent version of timegm (which is not present in all compilers): converts a time structure into an UTM time_t. More... | |
void | memcpy (void *dest, size_t destSize, const void *src, size_t copyCount) noexcept |
An OS and compiler independent version of "memcpy". More... | |
int | getch () noexcept |
An OS-independent version of getch, which waits until a key is pushed. More... | |
bool | kbhit () noexcept |
An OS-independent version of kbhit, which returns true if a key has been pushed. More... | |
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |