mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-25 12:15:26 +00:00
41 lines
826 B
C++
41 lines
826 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include <fnd/ISerialisable.h>
|
|
#include <fnd/List.h>
|
|
#include <nx/SacEntry.h>
|
|
|
|
namespace nx
|
|
{
|
|
class SacBinary :
|
|
public fnd::ISerialisable
|
|
{
|
|
public:
|
|
SacBinary();
|
|
SacBinary(const SacBinary& other);
|
|
|
|
void operator=(const SacBinary& other);
|
|
bool operator==(const SacBinary& other) const;
|
|
bool operator!=(const SacBinary& other) const;
|
|
|
|
// export/import binary
|
|
void toBytes();
|
|
void fromBytes(const byte_t* bytes, size_t len);
|
|
const fnd::Vec<byte_t>& getBytes() const;
|
|
|
|
// variables
|
|
void clear();
|
|
const fnd::List<SacEntry>& getServiceList() const;
|
|
void addService(const SacEntry& service);
|
|
private:
|
|
const std::string kModuleName = "SAC_BINARY";
|
|
|
|
// raw binary
|
|
fnd::Vec<byte_t> mRawBinary;
|
|
|
|
// variables
|
|
fnd::List<SacEntry> mServices;
|
|
};
|
|
|
|
}
|