# ReadStatus

> The state of an asynchronous file request.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.IO.LowLevel.Unsafe](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum ReadStatus
```

## Remarks

These enumerations represent the raw underlying states of an asynchronous file request.

When submitted, all requests enter the [ReadStatus.InProgress](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/inprogress.md) state while they are pending execution or in progress. On completion, the state changes to [ReadStatus.Complete](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/complete.md), [ReadStatus.Truncated](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/truncated.md) or [ReadStatus.Failed](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/failed.md). If the read is canceled before completion, the state becomes [ReadStatus.Canceled](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/canceled.md).

A truncated read occurs when attempting to access beyond the end of a file.

## Fields

| Value                                                                                           | Description                                                                                                    |
| ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [Canceled](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/canceled.md)     | The asynchronous file request was canceled before the read operations were completed.                          |
| [Complete](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/complete.md)     | The asynchronous file request completed successfully and all read operations within it were completed in full. |
| [Failed](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/failed.md)         | One or more of the asynchronous file request's read operations have failed.                                    |
| [InProgress](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/inprogress.md) | The asynchronous file request is in progress.                                                                  |
| [Truncated](/engine/6000.5/script-reference/unity/io/lowlevel/unsafe/readstatus/truncated.md)   | The asynchronous file request has completed but one or more of the read operations were truncated.             |
