---
title: Write<T>(T)
product: Unity Editor
version: '6000.7'
latest_version: '7000.0'
status: This page documents version 6000.7. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafestream/writer/write
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/collections/lowlevel/unsafe/unsafestream/writer/write.md
last_updated: 2026-09-14
generated_at: 2026-11-18T00:09:22.087Z
locale: en-us
---

# Write<T>(T)

> Write a value to a buffer.

## Definition

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

```csharp
public void Write<T>(T value) where T : unmanaged
```

### Parameters

**** (T): The value to write.

### Remarks

The value is written to the buffer which was specified with [UnsafeStream.Writer.BeginForEachIndex](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafestream/writer/beginforeachindex.md).
