janwas
317f98a6c0
archive: pretty much done except for trace and archive_builder IO: io_manager still needs to be fixed/revised (especially WRT buffer and alignment management) posix: done vfs: need to complete vfs_mount and tie it in to vfs.cpp dir_util: needs further revisions (VFS interface changed since then) This was SVN commit r5475.
23 lines
703 B
C
23 lines
703 B
C
/**
|
|
* =========================================================================
|
|
* File : io_buf.h
|
|
* Project : 0 A.D.
|
|
* Description :
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_IO_BUF
|
|
#define INCLUDED_IO_BUF
|
|
|
|
typedef boost::shared_ptr<const u8> IoBuf;
|
|
const IoBuf IO_BUF_TEMP((const u8*)0);
|
|
|
|
// memory will be allocated from the heap, not the (limited) file cache.
|
|
// this makes sense for write buffers that are never used again,
|
|
// because we avoid having to displace some other cached items.
|
|
extern IoBuf io_buf_Allocate(size_t size);
|
|
|
|
#endif // #ifndef INCLUDED_IO_BUF
|