Fairport
v1.0.38
|
Defines a stream device for a heap allocation for use by boost iostream. More...
#include <heap.h>
Public Member Functions | |
hid_stream_device () | |
std::streamsize | read (char *pbuffer, std::streamsize n) |
std::streampos | seek (boost::iostreams::stream_offset off, std::ios_base::seekdir way) |
Friends | |
class | heap_impl |
Defines a stream device for a heap allocation for use by boost iostream.
The boost iostream library requires that one defines a device, which implements a few key operations. This is the device for streaming out of a heap allocation.
std::streamsize fairport::hid_stream_device::read | ( | char * | pbuffer, |
std::streamsize | n | ||
) | [inline] |
std::streampos fairport::hid_stream_device::seek | ( | boost::iostreams::stream_offset | off, |
std::ios_base::seekdir | way | ||
) | [inline] |