# UnsafeUtilityExtensions

> Provides utility methods for unsafe, untyped buffers.

## Definition

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

```csharp
public static class UnsafeUtilityExtensions
```

## Static Methods

| Method                                                                                                                                                        | Description                                                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AddressOf](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeutilityextensions/addressof.md)                                           | Returns the address of a read-only reference.                                                                                                                                                                                                                        |
| [AsRef](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeutilityextensions/asref.md)                                                   | Returns a read-write reference from a read-only reference. Useful when you want to pass an `in` arg (read-only reference) where a `ref` arg (read-write reference) is expected. Do not mutate the referenced value, as doing so may break the runtime's assumptions. |
| [ReadArrayElementBoundsChecked](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeutilityextensions/readarrayelementboundschecked.md)   | Reads an element from a buffer after bounds checking.                                                                                                                                                                                                                |
| [WriteArrayElementBoundsChecked](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeutilityextensions/writearrayelementboundschecked.md) | Writes an element to a buffer after bounds checking.                                                                                                                                                                                                                 |
