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