GetLength() public méthode

public GetLength ( TextSegment segment ) : int
segment TextSegment
Résultat int
Exemple #1
0
        void BuildSections()
        {
            var has_win32_resources = win32_resources != null;

            if (has_win32_resources)
            {
                sections++;
            }

            text = CreateSection(".text", text_map.GetLength(), null);
            var previous = text;

            if (has_win32_resources)
            {
                rsrc = CreateSection(".rsrc", (uint)win32_resources.length, previous);

                PatchWin32Resources(win32_resources);
                previous = rsrc;
            }

            if (has_reloc)
            {
                reloc = CreateSection(".reloc", 12u, previous);
            }
        }
Exemple #2
0
        void BuildSections()
        {
            if (win32_resources != null || win32_resources_directory != null)
            {
                sections++;
            }

            text = CreateSection(".text", text_map.GetLength(), null);
            var previous = text;

            if (win32_resources != null)
            {
                rsrc = CreateSection(".rsrc", (uint)win32_resources.length, previous);

                PatchWin32Resources(win32_resources);
                previous = rsrc;
            }
            else if (win32_resources_directory != null && win32_resources_directory.Entries.Count > 0)
            {
                rsrc = CreateSection(".rsrc", previous);

                WriteWin32ResourcesDirectory(win32_resources_directory);
                SetSectionSize(rsrc, (uint)win32_resources.length);
                previous = rsrc;
            }

            if (has_reloc)
            {
                reloc = CreateSection(".reloc", 12u, previous);
            }
        }
        void BuildSections()
        {
            var has_win32_resources = win32_resources != null;

            Section text = CreateSection(".text", text_map.GetLength(), 0x60000020, null);

            sections.Add(text);
            var previous = text;

            if (has_win32_resources)
            {
                Section rsrc = CreateSection(".rsrc", (uint)win32_resources.length, 0x40000040, previous);
                sections.Add(rsrc);

                PatchWin32Resources(win32_resources);
                previous = rsrc;
            }

            Section reloc = CreateSection(".reloc", 12u, 0x42000040, previous);

            sections.Add(reloc);
        }