namespace Sandbox;
internal partial class BytePack
{
///
/// Allows classes to specify how they are to be serialized and deserialized through BytePack.
///
public interface ISerializer
{
///
/// Read from a and return an object.
///
/// The incoming byte stream.
/// The expected type.
///
static abstract object BytePackRead( ref ByteStream bs, Type targetType );
///
/// Write a value to an outgoing .
///
/// The value to be serialized.
/// The outgoing byte stream.
static abstract void BytePackWrite( object value, ref ByteStream bs );
}
}