Mono.Cecil.PE.TextMap.GetLength C# (CSharp) Method

GetLength() public method

public GetLength ( TextSegment segment ) : int
segment TextSegment
return int
        public int GetLength(TextSegment segment)
        {
            return (int) map [(int) segment].Length;
        }

Same methods

TextMap::GetLength ( ) : uint

Usage Example

Esempio n. 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);
            }
        }
All Usage Examples Of Mono.Cecil.PE.TextMap::GetLength