WvStreams
|
A buffer that provides a read-write view over another buffer with a different datatype. More...
#include <wvbufbase.h>
Public Member Functions | |
template<typename S > | |
WvBufViewBase (WvBufBase< S > &_buf) | |
Creates a new buffer. More... | |
A buffer that provides a read-write view over another buffer with a different datatype.
Reading and writing through this buffer implicitly performs the equivalent of reinterpret_cast on each element.
Most useful for manipulating data backed by a raw memory buffer.
"T" is the type of object to store, must be a primitive or a struct without special initialization, copy, or assignment semantics
Definition at line 1052 of file wvbufbase.h.
|
inline |
Creates a new buffer.
Does not take ownership of the supplied buffer.
"_buf" is a pointer to the buffer to be wrapped
Definition at line 1064 of file wvbufbase.h.