nstool/lib/libnx/include/nx/AciBinary.h

52 lines
1,007 B
C
Raw Normal View History

2017-07-15 08:28:41 +00:00
#pragma once
#include <string>
#include <fnd/List.h>
#include <nx/AciHeader.h>
#include <nx/FacBinary.h>
#include <nx/SacBinary.h>
#include <nx/KcBinary.h>
namespace nx
{
class AciBinary :
public AciHeader
{
public:
AciBinary();
AciBinary(const AciBinary& other);
2018-06-24 08:18:54 +00:00
void operator=(const AciBinary& other);
2017-07-15 08:28:41 +00:00
bool operator==(const AciBinary& other) const;
bool operator!=(const AciBinary& other) const;
// export/import binary
2018-06-24 08:18:54 +00:00
virtual void toBytes();
virtual void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const;
2017-07-15 08:28:41 +00:00
// variables
virtual void clear();
const FacBinary& getFac() const;
void setFac(const FacBinary& fac);
const SacBinary& getSac() const;
void setSac(const SacBinary& sac);
const KcBinary& getKc() const;
void setKc(const KcBinary& kc);
private:
const std::string kModuleName = "ACI_BINARY";
// raw binary
2018-06-24 08:18:54 +00:00
fnd::Vec<byte_t> mRawBinary;
2017-07-15 08:28:41 +00:00
// variables
FacBinary mFac;
SacBinary mSac;
KcBinary mKc;
};
}