30 #include "streamclone.h"
34 int main (
int ,
char ** )
38 int ret = file->
open();
40 std::cerr <<
"failed: " __FILE__
": " << __LINE__ << std::endl;
41 std::cerr <<
"Couldn't open test file. Test skipped.\n";
45 size_t r = file->
read(buf1, 6);
47 std::cerr <<
"failed: " __FILE__
": " << __LINE__ << std::endl;
55 std::cerr <<
"failed: " __FILE__
": " << __LINE__ << std::endl;
59 r = file->
read(buf2, 4);
61 std::cerr <<
"failed: " __FILE__
": " << __LINE__ << std::endl;
65 if (strncmp(buf1 + 2, buf2, 4) != 0) {
66 std::cerr <<
"failed: " __FILE__
": " << __LINE__ << std::endl;
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.
cloned stream. Allow reading from a different offset
virtual int read(void *buf, size_t count)