WinAPIEventDriverFiles

Undocumented in source.

Constructors

this
this(WinAPIEventDriverCore core)
Undocumented in source.

Members

Functions

addRef
void addRef(FileFD descriptor)
Undocumented in source. Be warned that the author may not have intended to support it.
adopt
FileFD adopt(int system_handle)
Undocumented in source. Be warned that the author may not have intended to support it.
cancelRead
void cancelRead(FileFD file)
Undocumented in source. Be warned that the author may not have intended to support it.
cancelWrite
void cancelWrite(FileFD file)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close(FileFD file, FileCloseCallback on_closed)
Undocumented in source. Be warned that the author may not have intended to support it.
getSize
ulong getSize(FileFD file)
Undocumented in source. Be warned that the author may not have intended to support it.
isValid
bool isValid(FileFD handle)
Undocumented in source. Be warned that the author may not have intended to support it.
open
FileFD open(string path, FileOpenMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
rawUserData
void* rawUserData(FileFD descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)
Undocumented in source. Be warned that the author may not have intended to support it.
read
void read(FileFD file, ulong offset, ubyte[] buffer, IOMode mode, FileIOCallback on_read_finish)
Undocumented in source. Be warned that the author may not have intended to support it.
releaseRef
bool releaseRef(FileFD descriptor)
Undocumented in source. Be warned that the author may not have intended to support it.
truncate
void truncate(FileFD file, ulong size, FileIOCallback on_finish)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(FileFD file, ulong offset, const(ubyte)[] buffer, IOMode mode, FileIOCallback on_write_finish)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From EventDriverFiles

open
FileFD open(string path, FileOpenMode mode)
Undocumented in source.
adopt
FileFD adopt(int system_file_handle)
Undocumented in source.
close
void close(FileFD file, FileCloseCallback on_closed)

Disallows any reads/writes and removes any exclusive locks.

getSize
ulong getSize(FileFD file)
Undocumented in source.
truncate
void truncate(FileFD file, ulong size, FileIOCallback on_finish)

Shrinks or extends a file to the specified size.

write
void write(FileFD file, ulong offset, const(ubyte)[] buffer, IOMode mode, FileIOCallback on_write_finish)

Writes data to a file

cancelWrite
void cancelWrite(FileFD file)

Cancels an ongoing write operation.

read
void read(FileFD file, ulong offset, ubyte[] buffer, IOMode mode, FileIOCallback on_read_finish)

Reads data from a file.

cancelRead
void cancelRead(FileFD file)

Cancels an ongoing read operation.

isValid
bool isValid(FileFD handle)

Determines whether the given file handle is valid.

addRef
void addRef(FileFD descriptor)

Increments the reference count of the given file.

releaseRef
bool releaseRef(FileFD descriptor)

Decrements the reference count of the given file.

userData
FileFD userData [@property setter]

Retrieves a reference to a user-defined value associated with a descriptor.

rawUserData
void* rawUserData(FileFD descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)

Low-level user data access. Use userData instead.

Meta