version 4.7.0
add PIEthernet socket options setReadBufferSize() and setWriteBufferSize() add PIByteArray::dataAs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user