Function OpenVDS::ReadElement
-
template<typename T>
inline T OpenVDS::ReadElement(const T *buffer, size_t element) Read element from buffer. This function has a template specialisation for bool making it suitable to read single bits from a buffer with packed bits.
- Parameters:
buffer – Buffer to read from
element – The element index to read from buffer
- Returns:
Element at position “element” is returned.