# UnsafeAppendBuffer.Reader

> A reader for UnsafeAppendBuffer.

## Definition

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

```csharp
public struct UnsafeAppendBuffer.Reader
```

## Fields

| Value                                                                                                           | Description                                                                |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [Offset](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/offset.md) | The location of the next read (expressed as a byte offset from the start). |
| [Ptr](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/ptr.md)       | The internal buffer where the content is stored.                           |
| [Size](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/size.md)     | The length in bytes of the append buffer's content.                        |

## Constructors

| Constructor                                                                                                                                                                                       | Description                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [Reader(System.Void\*,System.Int32)](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/ctor.md#reader\(void*-int\))                                     | Initializes and returns an instance of UnsafeAppendBuffer.Reader that reads from a buffer. |
| [Reader(Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer@)](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/ctor.md#reader\(unsafeappendbuffer\)) | Initializes and returns an instance of UnsafeAppendBuffer.Reader.                          |

## Properties

| Property                                                                                                                  | Description                                                                   |
| ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [EndOfBuffer](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/endofbuffer.md) | Whether the offset has advanced past the last of the append buffer's content. |

## Methods

| Method                                                                                                                        | Description                              |
| ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [ReadNext](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/readnext.md)           | Reads an element from the append buffer. |
| [ReadNextArray](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeappendbuffer/reader/readnextarray.md) | Reads an array from the append buffer.   |
