mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
接入obfuz->2.0
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
#include "MetadataReader.h"
|
||||
|
||||
namespace hybridclr
|
||||
{
|
||||
namespace metadata
|
||||
{
|
||||
//!!!{{POLYMORPHIC_DEFINES
|
||||
#define POLYMORPHIC_IMAGE_SIGNATURE "CODEPHPY"
|
||||
constexpr uint32_t kPolymorphicImageVersion = 1;
|
||||
constexpr uint32_t kFormatVariantVersion = 0;
|
||||
|
||||
//!!!}}POLYMORPHIC_DEFINES
|
||||
|
||||
struct PolymorphicImageHeaderData
|
||||
{
|
||||
const byte* signature;
|
||||
uint32_t formatVersion;
|
||||
uint32_t formatVariant;
|
||||
void Read(MetadataReader& reader)
|
||||
{
|
||||
signature = reader.ReadFixedBytes(8);
|
||||
formatVersion = reader.ReadUInt32();
|
||||
formatVariant = reader.ReadUInt32();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user