# Sandbox.Internal.SafeDecoder.GetChars

## Overload 1

```csharp
int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
```

### Parameters

- `bytes` (`byte[]`)
- `byteIndex` (`int`)
- `byteCount` (`int`)
- `chars` (`char[]`)
- `charIndex` (`int`)

### Returns

`int`

## Overload 2

```csharp
int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, bool flush)
```

### Parameters

- `bytes` (`byte[]`)
- `byteIndex` (`int`)
- `byteCount` (`int`)
- `chars` (`char[]`)
- `charIndex` (`int`)
- `flush` (`bool`)

### Returns

`int`

## Overload 3

```csharp
int GetChars(byte* bytes, int byteCount, char* chars, int charCount, bool flush)
```

### Parameters

- `bytes` (`byte*`)
- `byteCount` (`int`)
- `chars` (`char*`)
- `charCount` (`int`)
- `flush` (`bool`)

### Returns

`int`

## Overload 4

```csharp
int GetChars(System.ReadOnlySpan<byte> bytes, System.Span<char> chars, bool flush)
```

### Parameters

- `bytes` (`System.ReadOnlySpan<byte>`)
- `chars` (`System.Span<char>`)
- `flush` (`bool`)

### Returns

`int`

Declared in [Sandbox.Internal.SafeDecoder](/api/Sandbox.Internal.SafeDecoder).
Assembly: `Sandbox.System`.
