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

Last change on this file since 56 was 56, checked in by Sam Hocevar, 15 years ago
  • Add licensing terms to most C / C++ files (Ref #5).
File size: 826 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
10#include "config.h"
11
12ram_file::ram_file()
13{
14  buf_size=2048;
15  buf=(uchar *)jmalloc(buf_size,"ram file buffer");
16  buf_end=0;
17}
18
19int ram_file::open_failure() { return 0; }
20
21int ram_file::unbuffered_read(void *buf, size_t count)       // returns number of bytes read
22{
23}
24
25  virtual int unbuffered_write(void *buf, size_t count);      // returns number of bytes written
26  virtual int unbuffered_seek(long offset, int whence);  // whence=SEEK_SET, SEEK_CUR, SEEK_END, ret=0=success
27  virtual int unbuffered_tell();
28  virtual int file_size();
29  virtual ~ram_file();
Note: See TracBrowser for help on using the repository browser.