version 4.7.0

add PIEthernet socket options setReadBufferSize() and setWriteBufferSize()
add PIByteArray::dataAs
This commit is contained in:
2025-02-06 11:13:43 +03:00
parent d01baffb0b
commit 8e96750046
4 changed files with 57 additions and 5 deletions

View File

@@ -492,6 +492,11 @@ public:
//! По умолчанию указывает на начало массива.
inline const uchar * data(size_t index = 0) const { return d.data(index); }
template<typename T>
inline T dataAs(size_t index = 0) {
return *(T *)d.data(index);
}
//! \~english Clear array, remove all elements.
//! \~russian Очищает массив, удаляет все элементы.
//! \~\details