22#ifndef OR_INTERNALS_IO_MEMSTREAM_H_
23#define OR_INTERNALS_IO_MEMSTREAM_H_
28#include <libopenraw/consts.h>
30#include "io/stream.hpp"
39 MemStream(
void *ptr,
size_t s);
44 MemStream(
const MemStream& f) =
delete;
45 MemStream & operator=(
const MemStream&) =
delete;
47 virtual or_error
open()
override;
48 virtual int close()
override;
49 virtual int seek(off_t offset,
int whence)
override;
50 virtual int read(
void *buf,
size_t count)
override;
51 virtual off_t filesize()
override;
57 unsigned char * m_current;
virtual int close() override
virtual int read(void *buf, size_t count) override
virtual or_error open() override
virtual int seek(off_t offset, int whence) override
Stream(const char *filename)
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....