# ReadCommand

> Describes the offset, size, and destination buffer of a single read operation.

## Definition

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

```csharp
public struct ReadCommand
```

## Remarks

If the asynchronous file read request results in a [ReadStatus.Truncated](/engine/6000.7/script-reference/unity/io/lowlevel/unsafe/readstatus/truncated.md) or [ReadStatus.Failed](/engine/6000.7/script-reference/unity/io/lowlevel/unsafe/readstatus/failed.md) state the `Size` field will be updated with the actual number of bytes read.

## Fields

| Value                                                                                    | Description                                        |
| ---------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [Buffer](/engine/6000.7/script-reference/unity/io/lowlevel/unsafe/readcommand/buffer.md) | The buffer that receives the read data.            |
| [Offset](/engine/6000.7/script-reference/unity/io/lowlevel/unsafe/readcommand/offset.md) | The offset where the read begins, within the file. |
| [Size](/engine/6000.7/script-reference/unity/io/lowlevel/unsafe/readcommand/size.md)     | The size of the read in bytes.                     |
