using System.Runtime.InteropServices; namespace SabreTools.Data.Models.GCF { /// [StructLayout(LayoutKind.Sequential)] public sealed class DirectoryEntry { /// /// Offset to the directory item name from the end of the directory items. /// public uint NameOffset; /// /// Size of the item. (If file, file size. If folder, num items.) /// public uint ItemSize; /// /// Checksome index. (0xFFFFFFFF == None). /// public uint ChecksumIndex; /// /// Flags for the directory item. (0x00000000 == Folder). /// [MarshalAs(UnmanagedType.U4)] public HL_GCF_FLAG DirectoryFlags; /// /// Index of the parent directory item. (0xFFFFFFFF == None). /// public uint ParentIndex; /// /// Index of the next directory item. (0x00000000 == None). /// public uint NextIndex; /// /// Index of the first directory item. (0x00000000 == None). /// public uint FirstIndex; } }