mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 10:16:42 +00:00
47 lines
1 KiB
C++
47 lines
1 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include <cstring>
|
|
#include <fnd/IByteModel.h>
|
|
#include <nn/hac/define/cnmt.h>
|
|
|
|
namespace nn
|
|
{
|
|
namespace hac
|
|
{
|
|
class DeltaMetaExtendedHeader :
|
|
public fnd::IByteModel
|
|
{
|
|
public:
|
|
DeltaMetaExtendedHeader();
|
|
DeltaMetaExtendedHeader(const DeltaMetaExtendedHeader& other);
|
|
|
|
void operator=(const DeltaMetaExtendedHeader& other);
|
|
bool operator==(const DeltaMetaExtendedHeader& other) const;
|
|
bool operator!=(const DeltaMetaExtendedHeader& other) const;
|
|
|
|
// IByteModel
|
|
void toBytes();
|
|
void fromBytes(const byte_t* bytes, size_t len);
|
|
const fnd::Vec<byte_t>& getBytes() const;
|
|
|
|
// variables
|
|
void clear();
|
|
|
|
uint64_t getApplicationId() const;
|
|
void setApplicationId(uint64_t application_id);
|
|
|
|
uint32_t getExtendedDataSize() const;
|
|
void setExtendedDataSize(uint32_t size);
|
|
|
|
private:
|
|
const std::string kModuleName = "DELTA_META_EXTENDED_HEADER";
|
|
|
|
// binary blob
|
|
fnd::Vec<byte_t> mRawBinary;
|
|
|
|
// variables
|
|
uint64_t mApplicationId;
|
|
uint32_t mExtendedDataSize;
|
|
};
|
|
}
|
|
}
|