# LogStateWithMetaData&lt;TEntry&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.logstorage.logstatewithmetadata-1/)

## FlipBit(string) {#flipbit-string-b958a7c8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.logstorage.logstatewithmetadata-1/methods/flipbit-string-b958a7c8/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/LogStorage/LogStateWithMetaData.cs#L107-L110)

```csharp
public bool FlipBit(string replica)
```

Toggle one of the bits in `Orleans.EventSourcing.LogStorage.LogStateWithMetaData-1.WriteVector` and return the new value.

### Parameters

- `replica` (`string`): The replica for which we want to flip the bit

### Returns

the state of the bit after flipping it

## GetBit(string) {#getbit-string-76d931e5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.logstorage.logstatewithmetadata-1/methods/getbit-string-76d931e5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/LogStorage/LogStateWithMetaData.cs#L97)

```csharp
public bool GetBit(string replica)
```

Gets one of the bits in `Orleans.EventSourcing.LogStorage.LogStateWithMetaData-1.WriteVector`

### Parameters

- `replica` (`string`): The replica for which we want to look up the bit
