# SafeBitRef(ulong*, int, AtomicSafetyHandle)

> Build a safe pointer to a bit at address ptr + offsetInBits.

## Definition

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

```csharp
public SafeBitRef(ulong* ptr, int offsetInBits, AtomicSafetyHandle safety)
```

### Parameters

**** (\[ulong\*]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): Base memory address to the bit. In bytes.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Offset in bits from the base memory address. in bits**** (\[AtomicSafetyHandle]\(/engine/7000.0/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle)): Safety handle for that memory space
