34 #include "SILLYFileDataSource.h"
36 #ifndef SILLY_OPT_INLINE
38 #include "SILLYFileDataSource.icpp"
47 : d_error(true), d_bytes(0), d_size(0)
49 FILE* data = fopen(filename,
"rb");
52 long status = fseek(data, 0, SEEK_END);
66 d_bytes =
new byte[d_size];
73 status = fread(reinterpret_cast<void*>(d_bytes), 1, d_size, data);
Simple Image Loading LibrarY namespace.
unsigned char byte
Typename for a byte.
~FileDataSource()
destructor
FileDataSource(const char *filename)
Create a data source from an existing file.