class axl::io::psx::File
#include <axl_io_psx_File.h>
class File: public axl::sl::Handle
{
public:
// construction
File();
File(int h);
// methods
bool
open(
const sl::StringRef& fileName,
uint_t openFlags = O_RDWR|O_CREAT,
mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH
);
bool
duplicate(int fd);
bool
setBlockingMode(bool isBlocking);
uint64_t
getSize() const;
bool
setSize(uint64_t size);
uint64_t
getPosition() const;
bool
setPosition(uint64_t offset) const;
size_t
getIncomingDataSize();
bool
flush();
int
ioctl(uint_t code);
template <typename T>
int
ioctl(
uint_t code,
T param
);
int
fcntl(uint_t code);
template <typename T>
int
fcntl(
uint_t code,
T param
);
size_t
read(
void* p,
size_t size
) const;
size_t
write(
const void* p,
size_t size
);
};