2017-07-06 03:30:27 +00:00
|
|
|
#pragma once
|
|
|
|
#include <fnd/types.h>
|
|
|
|
|
2017-07-06 11:17:21 +00:00
|
|
|
namespace nx
|
2017-07-06 03:30:27 +00:00
|
|
|
{
|
2017-07-06 11:17:21 +00:00
|
|
|
class ISerialiseableBinary
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//virtual bool operator==(const ISerialiseableBinary& other) = 0;
|
|
|
|
//virtual void operator=(const ISerialiseableBinary& other) = 0;
|
2017-07-06 03:30:27 +00:00
|
|
|
|
2017-07-06 11:17:21 +00:00
|
|
|
virtual const u8* getBytes() const = 0;
|
|
|
|
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;
|
|
|
|
virtual void importBinary(const u8* 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-06 03:30:27 +00:00
|
|
|
|