nint is not supported by current version.
This patch Changes TimeStamp's member attribute type
to IntPtr.
Signed-off-by: ChangGyu Choi <uppletaste@gmail.com>
[StructLayout(LayoutKind.Sequential)]
internal struct TimeStamp
{
- public nint sec;
- public nint nsec;
+ public IntPtr sec;
+ public IntPtr nsec;
}
}
}
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
- <LangVersion>9.0</LangVersion>
</PropertyGroup>
<ItemGroup>
if (r != Interop.LibRPCPort.ErrorCode.None)
throw new InvalidIOException();
- return new TimeStamp(time.sec, time.nsec);
+ return new TimeStamp(time.sec.ToInt64(), time.nsec.ToInt64());
}
};