[Python.NET] [Pythonnet] Python to c# long conversion time

2022-06-27 Thread Jordan GUILLOT
e output: "Conversion takes 303ms" Is this the right way for this conversion? Environment: Python: v3.8.10 Pythonnet: * Pypi: v2.5.2 * Nuget : 3.0.0-preview2022-06-03 Windows 10 Pro .NET framework 4.7.2 Regards, Jordan GUILLOT ___ P

[Python.NET] Re: [Pythonnet] Python to c# long conversion time

2022-06-29 Thread jordan . guillot
Thanks for your answer. In my .Net example: ... long t0 = st.ElapsedMilliseconds; PyBuffer myarr = myPyByteArray.GetBuffer(); byte[] myCsharpByteArray = new byte[(int)myarr.Length]; myarr.Read(myCsharpByteArray, 0, (in