KS.Reactor.ksIBufferable Interface Reference

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

Inheritance diagram for KS.Reactor.ksIBufferable:
KS.Reactor.ksRoomInfo

Public Member Functions

byte[] GetBytes ()
 Serialize the object into a byte array. More...
 
void FromBytes (byte[] buffer)
 Deserialize a byte array and update the object. More...
 

Detailed Description

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

Member Function Documentation

◆ FromBytes()

void KS.Reactor.ksIBufferable.FromBytes ( byte[]  buffer)

Deserialize a byte array and update the object.

Parameters
bufferByte array to deserialze.

Implemented in KS.Reactor.ksRoomInfo.

◆ GetBytes()

byte [] KS.Reactor.ksIBufferable.GetBytes ( )

Serialize the object into a byte array.

Returns
Byte array represeting the serialized object.

Implemented in KS.Reactor.ksRoomInfo.