Class FileKit.FileReadOperation
Simple wrapper class to handle FileKit.ReadFile when using coroutines or async code.
Inheritance
System.Object
FileKit.FileReadOperation
Namespace: Trail
Assembly: Trail.dll
Syntax
public class FileReadOperation : IEnumerator
Properties
Data
The data buffer.
Declaration
public byte[] Data { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
IsCanceled
Is true if the read operation was canceled.
Declaration
public bool IsCanceled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsDone
Is true if the read operation is done.
Declaration
public bool IsDone { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsError
Is true if the read operation had an error.
Declaration
public bool IsError { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Length
The length of Data.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Result
The result of the read operation.
Declaration
public Result Result { get; }
Property Value
Type | Description |
---|---|
Result |
Methods
Cancel()
Cancel the read operation if it is not done.
Declaration
public void Cancel()