source: abuse/tags/pd/abuse/src/ramfile.c @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
  • Property svn:keywords set to Id
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.