# BitStreamFormatter.Format(byte[], SerializerSession)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.utilities.bitstreamformatter/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.utilities.bitstreamformatter/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Utilities/BitStreamFormatter.cs#L50-L51)

```csharp
public static string Format(byte[] array, SerializerSession session)
```

Formats the specified array.

### Parameters

- `array` (`byte[]`): The array.
- `session` (`SerializerSession`): The session.

### Returns

The formatted input.
