using System.Runtime.InteropServices; namespace Qrakhen.Qamp.Core.Values; [StructLayout(LayoutKind.Sequential, Size = sizeof(long))] public readonly record struct Address(long Value) { public override string ToString() => $"0x{Value:x8}"; public static implicit operator long(Address address) => address.Value; public static implicit operator Address(long value) => new(value); }