3 #ifndef SPECTMORPH_MMAP_IN_HH 4 #define SPECTMORPH_MMAP_IN_HH 8 #include "smgenericin.hh" 15 unsigned char *mapfile;
16 unsigned char *mapend;
20 MMapIn (
unsigned char *mapfile,
unsigned char *mapend,
int fd);
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);
bool skip(size_t size)
Definition: smmmapin.cc:92
Generic Input Stream.
Definition: smgenericin.hh:17
int get_byte()
Definition: smmmapin.cc:70
unsigned char * mmap_mem(size_t &remaining)
Definition: smmmapin.cc:106
Definition: smmmapin.hh:13
size_t get_pos()
Definition: smmmapin.cc:113
Definition: smalignedarray.cc:7
int read(void *ptr, size_t size)
Definition: smmmapin.cc:79
GenericIn * open_subfile(size_t pos, size_t len)
Definition: smmmapin.cc:119