#include <iodevice_provider.h>
Public Member Functions | |
Construction | |
| virtual | ~CL_IODeviceProvider () |
Attributes | |
| virtual int | get_size () const |
| Returns the size of data stream. | |
| virtual int | get_position () const |
| Returns the position in the data stream. | |
Operations | |
| virtual int | send (const void *data, int len, bool send_all=true)=0 |
| Send data to device. | |
| virtual int | receive (void *data, int len, bool receive_all=true)=0 |
| Receive data from device. | |
| virtual int | peek (void *data, int len)=0 |
| Peek data from device. | |
| virtual CL_IODeviceProvider * | duplicate ()=0 |
| Returns a new provider to the same resource. | |
| virtual bool | seek (int position, CL_IODevice::SeekMode mode) |
| Seek in data stream. | |
|
|
|
|
|
Returns a new provider to the same resource.
|
|
|
Returns the position in the data stream. Returns -1 if the position is unknown. |
|
|
Returns the size of data stream. Returns -1 if the size is unknown. |
|
||||||||||||
|
Peek data from device.
|
|
||||||||||||||||
|
Receive data from device.
|
|
||||||||||||
|
Seek in data stream.
|
|
||||||||||||||||
|
Send data to device.
|
1.4.6