3 #ifndef SPECTMORPH_MMAP_IN_HH
4 #define SPECTMORPH_MMAP_IN_HH
8 #include "smgenericin.hh"
15 unsigned char *mapfile;
16 unsigned char *mapend;
18 GMappedFile *g_mapped_file;
20 MMapIn (
unsigned char *mapfile,
unsigned char *mapend, GMappedFile *g_mapped_file);
23 static GenericIn* open (
const std::string& filename);
24 static GenericIn* open_mem (
unsigned char *mem_start,
unsigned char *mem_end);
27 int read (
void *ptr,
size_t size);
28 bool skip (
size_t size);
29 unsigned char *
mmap_mem (
size_t& remaining);
Generic Input Stream.
Definition: smgenericin.hh:18
Definition: smmmapin.hh:14
int read(void *ptr, size_t size)
Definition: smmmapin.cc:74
unsigned char * mmap_mem(size_t &remaining)
Definition: smmmapin.cc:101
GenericIn * open_subfile(size_t pos, size_t len)
Definition: smmmapin.cc:114
bool skip(size_t size)
Definition: smmmapin.cc:87
size_t get_pos()
Definition: smmmapin.cc:108
int get_byte()
Definition: smmmapin.cc:65