# BufferAccessor<T>

> Interface to a chunk's array of component values for a buffer component type

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public struct BufferAccessor<T> where T : unmanaged, IBufferElementData
```

## Properties

| Property                                                                           | Description                                                                                                                                         |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [this\[\]](/engine/7000.0/script-reference/unity/entities/bufferaccessor1/item.md) | Look up the [DynamicBuffer\<T>](/engine/7000.0/script-reference/unity/entities/dynamicbuffer1.md) value at a specific array index within the chunk. |
| [Length](/engine/7000.0/script-reference/unity/entities/bufferaccessor1/length.md) | The number of buffer elements                                                                                                                       |

## Methods

| Method                                                                                           | Description                                                            |
| ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------- |
| [ToFixedString](/engine/7000.0/script-reference/unity/entities/bufferaccessor1/tofixedstring.md) | Returns the formatted FixedString "BufferAccessor\[type\_name\_here]". |
