Constructor

new(path:String, bytes:Bytes)

Methods

Inherited Variables

Defined by FileEntry

read onlydirectory:String

read onlyextension:String

read onlyisAvailable:Bool

read onlyisDirectory:Bool

read onlyname:String

read onlypath:String

read onlysize:Int

Inherited Methods

Defined by FileEntry

fetchBytes(pos:Int, len:Int):Bytes

Similar to readBytes except : a) a temporary buffer is reused, meaning a single fetchBytes must occur at a single time b) it will throw an Eof exception if the data is not available

getSign():Int

Read first 4 bytes of the file.

getText():String

@:value({ priority : 0. })readBytesAsync(out:Bytes, outPos:Int, pos:Int, len:Int, onDone:Int ‑> Void, priority:Float = 0.):AsyncRead

Same as readBytes, but the read is performed in async mode onDone is called in the calling thread (through its event loop) with the number of bytes read, unless the request is cancelled. The out bytes must not be accessed until then.

readFull(bytes:Bytes, pos:Int, len:Int):Void

watch(onChanged:Null<() ‑> Void>):Void