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;
void addValue(int32_t value)
uint32_t m_count
The number of items currently in the list.
void setIncremental(const uint32_t start, const uint32_t end, const int32_t step)
int32_t readFromString(const char *str)
bool operator==(const IntList &lst)
int32_t serialize(char *buffer) const
uint32_t * m_data
The array containing the items.
void resize(uint32_t newSize)
Resizes the list to at least the given size.
int32_t writeToString(char *buffer) const
int32_t deserialize(const char *str)
uint32_t m_max
The current size of the data array.
The namespace of all Xsens software since 2006.
GLsizei const GLfloat * value
int32_t writeToStringHex(char *buffer) const
unsigned __int32 uint32_t
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 memcpy(void *dest, size_t destSize, const void *src, size_t copyCount) noexcept
An OS and compiler independent version of "memcpy".