# Sandbox.Internal.TypeLibrary.FromBytes

## Overload 1

```csharp
T FromBytes(byte[] data)
```

Deserialize this from bytes. 
If the type is unknown, T can be an object.

### Parameters

- `data` (`byte[]`)

### Returns

`T`

## Overload 2

```csharp
T FromBytes(System.ReadOnlySpan<byte> data)
```

### Parameters

- `data` (`System.ReadOnlySpan<byte>`)

### Returns

`T`

## Overload 3

```csharp
T FromBytes(ref ByteStream bs)
```

Deserialize this from bytes. 
If the type is unknown, T can be an object.

### Parameters

- `ref bs` (`ByteStream`)

### Returns

`T`

Declared in [Sandbox.Internal.TypeLibrary](/api/Sandbox.Internal.TypeLibrary).
Assembly: `Sandbox.Reflection`.
