2 #ifndef vil_stream_core_h_ 3 #define vil_stream_core_h_ 11 # include <vcl_msvc_warnings.h> 37 bool ok()
const override {
return true; }
49 #endif // vil_stream_core_h_ Stream interface for VIL image loaders.
vil_streampos write(void const *buf, vil_streampos n) override
Write n bytes from buf. Returns number of bytes written.
vil_streampos read(void *buf, vil_streampos n) override
Read n bytes into buf. Returns number of bytes read.
void seek(vil_streampos position) override
Goto file pointer.
bool ok() const override
Return false if the stream is broken.
vil_streampos file_size() const override
Amount of data in the stream.
Stream interface for VIL image loaders.
vil_streampos tell() const override
Return file pointer.
vil_stream_core(unsigned block_size=16384)
~vil_stream_core() override
std::vector< char * > block_
vil_streampos size() const
get current file size.
vil_streampos m_transfer(char *buf, vil_streampos pos, vil_streampos n, bool read)
Read or write n bytes at position pos.
An in-core vil_stream implementation.