As it seems that no one has put the obvious solution yet: generics
Did you look at the interface of the wrapped library? How do you think the generics will help?
The main problem of the OP is that he doesn't know how to unpack the DAQ buffer. His question is related to
his own idea of how to solve it. Any advanced features are unnecessary, he just need a little more understanding of the data memory layout.