/* This software is licensed by the MIT License, see LICENSE file */ /* Copyright © 2024-2025 Gregory Lirent */ using System.Text.Json.Serialization; namespace WebmrAPI.Models { public class ProcessModuleInfo : MemoryRegion { private string? _moduleName = null; private string? _fileName = null; private long _entrypointAddress = 0; public string? ModuleName { get => LockedGet(ref _moduleName); set => LockedSet(ref _moduleName, value); } public string? FileName { get => LockedGet(ref _fileName); set => LockedSet(ref _fileName, value); } public string? EntrypointAddress { get => (EntrypointRawAddress > 0) ? $"0x{EntrypointRawAddress:X16}" : null; } [JsonIgnore] public long EntrypointRawAddress { get => LockedGet(ref _entrypointAddress); set => LockedSet(ref _entrypointAddress, value); } } }