mirror of
https://github.com/jakcron/nstool
synced 2024-12-26 14:41:14 +00:00
20 lines
463 B
C++
20 lines
463 B
C++
#pragma once
|
|
#include <fnd/types.h>
|
|
|
|
namespace nx
|
|
{
|
|
class ISerialiseableBinary
|
|
{
|
|
public:
|
|
//virtual bool operator==(const ISerialiseableBinary& other) = 0;
|
|
//virtual void operator=(const ISerialiseableBinary& other) = 0;
|
|
|
|
virtual const u8* getBytes() const = 0;
|
|
virtual size_t getSize() const = 0;
|
|
|
|
virtual void exportBinary() = 0;
|
|
virtual void importBinary(const u8* bytes) = 0;
|
|
virtual void importBinary(const u8* bytes, size_t len) = 0;
|
|
};
|
|
}
|
|
|