class AsyncFile
package digigun.sys.io
Completion-based asynchronous file operations.
Static methods
staticopen(loop:NativeLoop, path:String, writeMode:Bool = false):AsyncFile
Opens a file for asynchronous operations.
Methods
read(length:Int, callback:(result:Int, data:NativeBuffer) ‑> Void):Void
Performs an asynchronous read from the file.
write(data:NativeBuffer, callback:(result:Int, bytes:Int) ‑> Void):Void
Performs an asynchronous write to the file.