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