|
HDK
|
Utility functions that operate on data buffers. More...
Functions | |
| template<typename V , typename B > | |
| V | getDataVal (const B &buffer, UN_DataIndex index, const V &default_value) |
Utility functions that operate on data buffers.
|
inline |
Returns a value constructed from an entry in the data buffer. This is useful when the type returned here differs from the underlying entry type. In particular, this is needed for UN_BoolDataBuffer whose underlying entries are bits (for which we can't return a const reference) while here we are returning bool (byte).
Definition at line 371 of file UN_DataBuffer.h.