Referenced_data (
Referenced_buffer * buffer, void * data, Datatype_uptr type )
Description
Constructs a new data descriptor from an already referenced buffer.
Parameters
buffer
- the buffer containing the data
data
- the data location
type
- the type of the data
Referenced_data (
void * data, std::function< void(void *)> freefunc, bool readable, Datatype_uptr type, bool writable )
Description
Constructs a new data descriptor.
Parameters
data
- the data location
freefunc
- the function to use to free the data buffer
readable
- the maximum allowed access to the underlying content
type
- the type of the data
writable
- the maximum allowed access to the underlying content