pub const ResourceDirectoryEntry = extern struct
pub const ResourceDirectoryEntry = extern struct { entry: packed union(u32) { name_offset: packed struct(u32) { address: u31, /// This is undocumented in the PE/COFF spec, but the high bit /// is set by cvtres.exe for string addresses to_string: bool = true, }, integer_id: u32, }, offset: packed struct(u32) { address: u31, to_subdirectory: bool, }, pub fn writeCoff(self: ResourceDirectoryEntry, writer: *std.Io.Writer) !void { try writer.writeInt(u32, @bitCast(self.entry), .little); try writer.writeInt(u32, @bitCast(self.offset), .little); } }