https://learn.microsoft.com/ja-jp/dotnet/api/system.runtime.interopservices.marshal.writeint64?view=net-10.0
Marshal.WriteInt64 Method (System.Runtime.InteropServices) | Microsoft Learn
Writes a 64-bit signed integer value to unmanaged memory. Writing to unaligned memory locations is supported.
marshalmethodsystemruntimemicrosoft