source: abuse/trunk/src/ramfile.cpp @ 2

Last change on this file since 2 was 2, checked in by Sam Hocevar, 14 years ago
  • imported original 0.7.0 tarball
File size: 541 bytes
Line 
1ram_file::ram_file()
2{
3  buf_size=2048;
4  buf=(uchar *)jmalloc(buf_size,"ram file buffer");
5  buf_end=0;
6}
7
8int ram_file::open_failure() { return 0; }
9
10int ram_file::unbuffered_read(void *buf, size_t count)       // returns number of bytes read
11{
12}
13
14  virtual int unbuffered_write(void *buf, size_t count);      // returns number of bytes written
15  virtual int unbuffered_seek(long offset, int whence);  // whence=SEEK_SET, SEEK_CUR, SEEK_END, ret=0=success
16  virtual int unbuffered_tell();
17  virtual int file_size();
18  virtual ~ram_file();
Note: See TracBrowser for help on using the repository browser.