2017-07-06 03:30:27 +00:00
|
|
|
#pragma once
|
|
|
|
#include <fnd/types.h>
|
|
|
|
|
2017-07-21 10:30:16 +00:00
|
|
|
namespace fnd
|
2017-07-06 03:30:27 +00:00
|
|
|
{
|
2017-07-06 11:17:21 +00:00
|
|
|
class ISerialiseableBinary
|
|
|
|
{
|
|
|
|
public:
|
2018-03-22 05:26:22 +00:00
|
|
|
virtual const byte_t* getBytes() const = 0;
|
2017-07-06 11:17:21 +00:00
|
|
|
virtual size_t getSize() const = 0;
|
2017-07-06 03:30:27 +00:00
|
|
|
|
2017-07-06 11:17:21 +00:00
|
|
|
virtual void exportBinary() = 0;
|
2018-03-22 05:26:22 +00:00
|
|
|
virtual void importBinary(const byte_t* bytes, size_t len) = 0;
|
2017-07-15 08:28:01 +00:00
|
|
|
|
|
|
|
virtual void clear() = 0;
|
2017-07-06 11:17:21 +00:00
|
|
|
};
|
2017-07-21 10:30:16 +00:00
|
|
|
}
|