# Sandbox.Internal.SafeDecoder.GetCharCount

## Overload 1

```csharp
int GetCharCount(byte[] bytes, int index, int count)
```

### Parameters

- `bytes` (`byte[]`)
- `index` (`int`)
- `count` (`int`)

### Returns

`int`

## Overload 2

```csharp
int GetCharCount(byte[] bytes, int index, int count, bool flush)
```

### Parameters

- `bytes` (`byte[]`)
- `index` (`int`)
- `count` (`int`)
- `flush` (`bool`)

### Returns

`int`

## Overload 3

```csharp
int GetCharCount(byte* bytes, int count, bool flush)
```

### Parameters

- `bytes` (`byte*`)
- `count` (`int`)
- `flush` (`bool`)

### Returns

`int`

## Overload 4

```csharp
int GetCharCount(System.ReadOnlySpan<byte> bytes, bool flush)
```

### Parameters

- `bytes` (`System.ReadOnlySpan<byte>`)
- `flush` (`bool`)

### Returns

`int`

Declared in [Sandbox.Internal.SafeDecoder](/api/Sandbox.Internal.SafeDecoder).
Assembly: `Sandbox.System`.
