nstool/lib/libfnd/include/fnd/ISerialiseableBinary.h

17 lines
313 B
C
Raw Normal View History

#pragma once
#include <fnd/types.h>
namespace fnd
{
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 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;
virtual void clear() = 0;
2017-07-06 11:17:21 +00:00
};
}