[hac] change comment for IByteModel methods.

This commit is contained in:
jakcron 2018-10-18 20:48:16 +08:00
parent 2439250fdf
commit 0bb49d0363
12 changed files with 27 additions and 26 deletions

View file

@ -9,7 +9,8 @@ namespace nn
{ {
namespace hac namespace hac
{ {
class FileSystemAccessControlBinary : public fnd::IByteModel class FileSystemAccessControlBinary :
public fnd::IByteModel
{ {
public: public:
struct sSaveDataOwnerId struct sSaveDataOwnerId
@ -42,7 +43,7 @@ namespace hac
bool operator==(const FileSystemAccessControlBinary& other) const; bool operator==(const FileSystemAccessControlBinary& other) const;
bool operator!=(const FileSystemAccessControlBinary& other) const; bool operator!=(const FileSystemAccessControlBinary& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* data, size_t len); void fromBytes(const byte_t* data, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -43,7 +43,7 @@ namespace hac
bool operator==(const HierarchicalIntegrityHeader& other) const; bool operator==(const HierarchicalIntegrityHeader& other) const;
bool operator!=(const HierarchicalIntegrityHeader& other) const; bool operator!=(const HierarchicalIntegrityHeader& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -40,7 +40,7 @@ namespace hac
bool operator==(const HierarchicalSha256Header& other) const; bool operator==(const HierarchicalSha256Header& other) const;
bool operator!=(const HierarchicalSha256Header& other) const; bool operator!=(const HierarchicalSha256Header& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -27,7 +27,7 @@ namespace hac
bool operator==(const KernelCapabilityBinary& other) const; bool operator==(const KernelCapabilityBinary& other) const;
bool operator!=(const KernelCapabilityBinary& other) const; bool operator!=(const KernelCapabilityBinary& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
virtual const fnd::Vec<byte_t>& getBytes() const; virtual const fnd::Vec<byte_t>& getBytes() const;

View file

@ -3,8 +3,8 @@
#include <fnd/List.h> #include <fnd/List.h>
#include <fnd/IByteModel.h> #include <fnd/IByteModel.h>
#include <nn/hac/meta.h> #include <nn/hac/meta.h>
#include <nn/hac/AccessControlInfoBinary.h> #include <nn/hac/AccessControlInfo.h>
#include <nn/hac/AccessControlInfoDescBinary.h> #include <nn/hac/AccessControlInfoDesc.h>
namespace nn namespace nn
{ {
@ -21,7 +21,7 @@ namespace hac
bool operator==(const MetaBinary& other) const; bool operator==(const MetaBinary& other) const;
bool operator!=(const MetaBinary& other) const; bool operator!=(const MetaBinary& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;
@ -53,11 +53,11 @@ namespace hac
const std::string& getProductCode() const; const std::string& getProductCode() const;
void setProductCode(const std::string& product_code); void setProductCode(const std::string& product_code);
const AccessControlInfoBinary& getAci() const; const AccessControlInfo& getAci() const;
void setAci(const AccessControlInfoBinary& aci); void setAci(const AccessControlInfo& aci);
const AccessControlInfoDescBinary& getAcid() const; const AccessControlInfoDesc& getAcid() const;
void setAcid(const AccessControlInfoDescBinary& acid); void setAcid(const AccessControlInfoDesc& acid);
private: private:
const std::string kModuleName = "META_BINARY"; const std::string kModuleName = "META_BINARY";
@ -73,8 +73,8 @@ namespace hac
uint32_t mMainThreadStackSize; uint32_t mMainThreadStackSize;
std::string mName; std::string mName;
std::string mProductCode; std::string mProductCode;
AccessControlInfoBinary mAci; AccessControlInfo mAci;
AccessControlInfoDescBinary mAcid; AccessControlInfoDesc mAcid;
}; };
} }
} }

View file

@ -55,7 +55,7 @@ namespace hac
bool operator==(const NcaHeader& other) const; bool operator==(const NcaHeader& other) const;
bool operator!=(const NcaHeader& other) const; bool operator!=(const NcaHeader& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -82,7 +82,7 @@ namespace hac
bool operator==(const NroHeader& other) const; bool operator==(const NroHeader& other) const;
bool operator!=(const NroHeader& other) const; bool operator!=(const NroHeader& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -94,7 +94,7 @@ namespace hac
bool operator==(const NsoHeader& other) const; bool operator==(const NsoHeader& other) const;
bool operator!=(const NsoHeader& other) const; bool operator!=(const NsoHeader& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -69,7 +69,7 @@ namespace hac
bool operator==(const PfsHeader& other) const; bool operator==(const PfsHeader& other) const;
bool operator!=(const PfsHeader& other) const; bool operator!=(const PfsHeader& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -20,7 +20,7 @@ namespace hac
bool operator==(const ServiceAccessControlBinary& other) const; bool operator==(const ServiceAccessControlBinary& other) const;
bool operator!=(const ServiceAccessControlBinary& other) const; bool operator!=(const ServiceAccessControlBinary& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -19,7 +19,7 @@ namespace hac
bool operator==(const ServiceAccessControlEntry& other) const; bool operator==(const ServiceAccessControlEntry& other) const;
bool operator!=(const ServiceAccessControlEntry& other) const; bool operator!=(const ServiceAccessControlEntry& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;

View file

@ -18,7 +18,7 @@ namespace hac
bool operator==(const XciHeader& other) const; bool operator==(const XciHeader& other) const;
bool operator!=(const XciHeader& other) const; bool operator!=(const XciHeader& other) const;
// export/import binary // IByteModel
void toBytes(); void toBytes();
void fromBytes(const byte_t* bytes, size_t len); void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const; const fnd::Vec<byte_t>& getBytes() const;