3 #ifndef SPECTMORPH_STDIO_SUB_IN_HH
4 #define SPECTMORPH_STDIO_SUB_IN_HH
7 #include "smgenericin.hh"
18 StdioSubIn (FILE *file,
size_t pos,
size_t len);
22 static GenericIn* open (
const std::string& filename,
size_t pos,
size_t len);
25 int read (
void *ptr,
size_t size);
26 bool skip (
size_t size);
27 unsigned char *
mmap_mem (
size_t& remaining);
Generic Input Stream.
Definition: smgenericin.hh:18
Definition: smstdiosubin.hh:13
unsigned char * mmap_mem(size_t &remaining)
Definition: smstdiosubin.cc:86
int read(void *ptr, size_t size)
Definition: smstdiosubin.cc:57
size_t get_pos()
Definition: smstdiosubin.cc:92
GenericIn * open_subfile(size_t pos, size_t len)
Definition: smstdiosubin.cc:98
bool skip(size_t size)
Definition: smstdiosubin.cc:72
int get_byte()
Definition: smstdiosubin.cc:42