Skip to content

TSdlAsyncIOOutcome

Information about a completed asynchronous I/O request.

Definition

Unit: Neslib.Sdl3.IO

type TSdlAsyncIOOutcome = record ... end;

Properties

Name Description
AsyncIO What generated this task. This will be invalid if it was closed!
Buffer Buffer where data was read/written.
BytesRequested Number of bytes the task was to read/write.
BytesTransferred actual number of bytes that were read/written.
Kind What sort of task was this? Read, write, etc?
Offset Offset in the TSdlAsyncIO where data was read/written.
Result The result of the work (success, failure, cancellation).
UserData pointer provided by the app when starting the task

Property Descriptions

AsyncIO

What generated this task. This will be invalid if it was closed!

property AsyncIO: TSdlAsyncIO read GetAsyncIO

Type: TSdlAsyncIO


Buffer

Buffer where data was read/written.

property Buffer: Pointer read FHandle.buffer

Type: Pointer


BytesRequested

Number of bytes the task was to read/write.

property BytesRequested: Int64 read FHandle.bytes_requested

Type: Int64


BytesTransferred

actual number of bytes that were read/written.

property BytesTransferred: Int64 read FHandle.bytes_transferred

Type: Int64


Kind

What sort of task was this? Read, write, etc?

property Kind: TSdlAsyncIOTaskKind read GetKind

Type: TSdlAsyncIOTaskKind


Offset

Offset in the TSdlAsyncIO where data was read/written.

property Offset: Int64 read FHandle.offset

Type: Int64


Result

The result of the work (success, failure, cancellation).

property Result: TSdlAsyncIOResult read GetResult

Type: TSdlAsyncIOResult


UserData

pointer provided by the app when starting the task

property UserData: Pointer read FHandle.userdata

Type: Pointer