#include <InputStream.h>
Inheritance diagram for AnnotatorComm::InputStream:
Public Member Functions | |
virtual uint32_t | available ()=0 throw (IOException) |
virtual int32_t | read ()=0 throw (IOException) |
virtual uint32_t | read (uint8_t *buffer, uint32_t offset, uint32_t length)=0 throw (IOException) |
InputStream
is an abstract class to a input stream of bytes.
Definition at line 24 of file InputStream.h.
virtual uint32_t AnnotatorComm::InputStream::available | ( | ) | throw (IOException) [pure virtual] |
Get the number of bytes available in the stream.
IOException | failure to get bytes available |
Implemented in AnnotatorComm::FTD2XX::FTD2XXInputStream.
virtual uint32_t AnnotatorComm::InputStream::read | ( | uint8_t * | buffer, | |
uint32_t | offset, | |||
uint32_t | length | |||
) | throw (IOException) [pure virtual] |
Read length
bytes from the stream, and place them into buffer
starting at offset
.
buffer | destination | |
offset | offset into destination | |
length | number of bytes to read |
IOException | failure to read bytes |
Implemented in AnnotatorComm::FTD2XX::FTD2XXInputStream.
virtual int32_t AnnotatorComm::InputStream::read | ( | ) | throw (IOException) [pure virtual] |
Read a byte from the stream.
IOException | failure to read byte |
Implemented in AnnotatorComm::FTD2XX::FTD2XXInputStream.