Go to the documentation of this file.
45 #ifndef _CRT_SECURE_NO_WARNINGS
46 #define _CRT_SECURE_NO_WARNINGS
80 if (step == 0)
return;
98 const char*
start = str;
100 if (sscanf(str,
"%lu:%ln", &sz, &rd) != 1)
return 0;
108 if (sscanf(str,
"%li%ln", &auxInt, &rd) != 1)
return 0;
120 if (
buffer ==
nullptr) buf = fake;
122 if (buf != fake) buf += written;
125 written +=
sprintf(buf,
" %lu",
static_cast<long unsigned>(
m_data[i]));
126 if (buf != fake) buf =
buffer + written;
136 if (
buffer ==
nullptr) buf = fake;
137 written =
sprintf(buf,
"%lu:",
static_cast<long unsigned>(
m_count));
138 if (buf != fake) buf += written;
142 sprintf(buf,
" 0x%lX",
static_cast<long unsigned>(
m_data[i]));
143 if (buf != fake) buf =
buffer + written;
uint32_t * m_data
The array containing the items.
int32_t writeToStringHex(char *buffer) const
int32_t readFromString(const char *str)
void addValue(int32_t value)
int32_t writeToString(char *buffer) const
int32_t serialize(char *buffer) const
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 compiler...
void resize(uint32_t newSize)
Resizes the list to at least the given size.
bool operator==(const IntList &lst)
int32_t deserialize(const char *str)
uint32_t m_max
The current size of the data array.
void setIncremental(const uint32_t start, const uint32_t end, const int32_t step)
GLsizei const GLfloat * value
The namespace of all Xsens software since 2006.
unsigned __int32 uint32_t
uint32_t m_count
The number of items currently in the list.
void memcpy(void *dest, size_t destSize, const void *src, size_t copyCount) noexcept
An OS and compiler independent version of "memcpy".
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |