58#define DiskIo_DATA void* data
93 void operator delete(
void* d) {
if(d)
::baFree(d); }
94 void *
operator new(size_t,
void *place) {
return place; }
95 void operator delete(
void*,
void *) { }
void * baMalloc(size_t size)
Allocate uninitialized storage using the target's configured allocator.
void baFree(void *p)
Release storage using the target's configured allocator.
int getRootDir(char *buf, int len)
Copy the configured root representation.
Definition: BaDiskIo.h:178
BA_API void DiskIo_destructor(DiskIo *o)
Release configuration after dependent users and open handles have stopped.
BA_API int DiskIo_setRootDir(DiskIo *o, const char *root)
Select the filesystem location exposed as this I/O interface's root.
int setRootDir(const char *root)
Select the filesystem location exposed as this I/O interface's root.
Definition: BaDiskIo.h:175
BA_API int DiskIo_getRootDir(DiskIo *o, char *buf, int len)
Copy the configured root representation.
BA_API void DiskIo_constructor(DiskIo *o)
Initialize the platform DiskIo implementation.
~DiskIo()
Release the root configuration and notify an attached I/O interface.
Definition: BaDiskIo.h:172
DiskIo DiskIo
The DiskIo class makes it possible for the web server to work with resources on a hard drive.
DiskIo()
Create a DiskIo instance and set the root directory to '/'.
Definition: BaDiskIo.h:169
The DiskIo class makes it possible for the web server to work with resources on a hard drive.
Definition: BaDiskIo.h:91
The IoIntf class specifies an abstract file API, implementations include ZipIo, DiskIo,...
Definition: IoIntf.h:482