Interface EventDriverFiles
Provides read/write operations on the local file system.
interface EventDriverFiles
;
Properties
Name | Type | Description |
userData [set]
|
T | Retrieves a reference to a user-defined value associated with a descriptor.
|
Methods
Name | Description |
addRef
(descriptor)
|
Increments the reference count of the given file.
|
adopt
(system_file_handle)
|
|
cancelRead
(file)
|
Cancels an ongoing read operation.
|
cancelWrite
(file)
|
Cancels an ongoing write operation.
|
close
(file, on_closed)
|
Disallows any reads/writes and removes any exclusive locks.
|
getSize
(file)
|
|
isValid
(handle)
|
Determines whether the given file handle is valid.
|
open
(path, mode)
|
|
open
(path, mode, on_opened)
|
|
read
(file, offset, buffer, mode, on_read_finish)
|
Reads data from a file.
|
releaseRef
(descriptor)
|
Decrements the reference count of the given file.
|
truncate
(file, size, on_finish)
|
Shrinks or extends a file to the specified size.
|
write
(file, offset, buffer, mode, on_write_finish)
|
Writes data to a file
|
rawUserData
(descriptor, size, initialize, destroy)
|
Low-level user data access. Use userData instead.
|