> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.ksibufferable.md).

# Interface ksIBufferable

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Interface required by objects that should be written to, and read from, the ksOutputBuffers and ksInputBufers.

```csharp
[Obsolete("Use ksISerializable instead.")]
public interface ksIBufferable
```

## Methods

### FromBytes(byte\[]) <a href="#ks_reactor_ksibufferable_frombytes_system_byte" id="ks_reactor_ksibufferable_frombytes_system_byte"></a>

Deserialize a byte array and update the object.

```csharp
void FromBytes(byte[] buffer)
```

#### Parameters

`buffer` [byte](https://learn.microsoft.com/dotnet/api/system.byte)\[]

Byte array to deserialze.

### GetBytes() <a href="#ks_reactor_ksibufferable_getbytes" id="ks_reactor_ksibufferable_getbytes"></a>

Serialize the object into a byte array.

```csharp
byte[] GetBytes()
```

#### Returns

[byte](https://learn.microsoft.com/dotnet/api/system.byte)\[]

Byte array represeting the serialized object.
