Public Member Functions | |
LocalSofaDataStream (SofaFS &sofaFS) | |
~LocalSofaDataStream () | |
int | open (size_t minbufsize=0) |
open the stream for reading | |
INT64 | getTotalStreamSizeInBytes () |
Gets the total size of the stream in number of bytes if known. | |
INT64 | howManyBytesAvailable () |
Gets the number of bytes available. | |
int | read (void *pbuffer, int elementSize, size_t numElements) |
This call reads at most the number of elements into specified buffer. | |
int | seek (INT64 offset, int origin) |
void | close () |
const TySofaDataPointer | getDataPointer () |
|
|
|
|
|
open the stream for reading
Implements uima::SofaDataStream. |
|
Gets the total size of the stream in number of bytes if known.
Implements uima::SofaDataStream. |
|
Gets the number of bytes available.
Implements uima::SofaDataStream. |
|
This call reads at most the number of elements into specified buffer. The call blocks until the number of required element are read or EOF. This will return elements in the native byte order for the current platform The buffer is allocated and owned by the caller and must be at least elementSize*numElements in size.
Implements uima::SofaDataStream. |
|
Implements uima::SofaDataStream. |
|
Implements uima::SofaDataStream. |
|
Implements uima::SofaDataStream. |