# ReadRawBits(int)

> Reads a specified number of bits from the data stream.

## Definition

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

```csharp
public uint ReadRawBits(int numbits)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): A positive number of bytes to write.

### Returns

| Type                                                         | Description                                                                                             |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | A 4-byte unsigned integer read from the current stream, or 0 if the end of the stream has been reached. |
