A pending asynchronous read, returned by FileEntry.readBytesAsync. The out bytes must not be accessed until the read is done.

Variables

@:value(0)read onlybytesRead:Int = 0

Number of bytes read, once the read is done.

read onlyentry:FileEntry

read onlylen:Int

read onlyout:Bytes

read onlyoutPos:Int

read onlypos:Int

priority:Float

Requests with higher priority are read first. Can be modified while the request is pending.

@:value(Pending)read onlystate:AsyncReadState = Pending

Methods

cancel():Void

Cancel the read : the onDone callback will not be called. If the read was already in progress, the out bytes might still be written until it completes.