# GetComponentDataPtrRW<T>(ref ComponentTypeHandle<T>)

> Provides an unsafe read/write interface to components stored in this chunk.

## Definition

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

## GetComponentDataPtrRW\<T>(ComponentTypeHandle\<T>)

```csharp
public readonly T* GetComponentDataPtrRW<T>(ref ComponentTypeHandle<T> typeHandle) where T : unmanaged, IComponentData
```

### Parameters

**** (\[ComponentTypeHandle\<T>]\(/engine/7000.0/script-reference/unity/entities/componenttypehandle1)): An object containing type and job safety information. To create this object, call [ComponentSystemBase.GetComponentTypeHandle](/engine/7000.0/script-reference/unity/entities/componentsystembase/getcomponenttypehandle.md). Pass the object to a job using a public field you define as part of the job struct.

### Returns

| Type            | Description                                                                                                                     |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| [\<T>\*](./.md) | A pointer to the component data stored in the chunk. Returns null if the chunk's archetype does not include component type `T`. |
