From e3c269af479467ae87310e3e143fd8417216f88b Mon Sep 17 00:00:00 2001 From: Samuele Lorefice Date: Fri, 2 May 2025 17:02:32 +0200 Subject: [PATCH] Added scaffolding + TODO --- CodeGenerator/BlendExt.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CodeGenerator/BlendExt.cs diff --git a/CodeGenerator/BlendExt.cs b/CodeGenerator/BlendExt.cs new file mode 100644 index 0000000..1fdb7ca --- /dev/null +++ b/CodeGenerator/BlendExt.cs @@ -0,0 +1,9 @@ +namespace CodeGenerator; + +public class BlendExt { + //TODO: Add an bool IsPrincipal extension method to kaitai structs lib + //A principal (or root) block is defined by having a two digit code and by the fact that its dna_index is always valid. + //If we have a pointer to a principal block, we can ignore the type of the pointer and use the block type. + //Subsidiary blocks are defined by having the code "DATA", which is ommited here. Their dna_index is not + // always correct and is only used when whichever field points to them has an "invalid" type (like void*). +} \ No newline at end of file