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, (int)myarr.Length, 0);
                long t1 = st.ElapsedMilliseconds;
                ...

Now the conversion takes less than 10 ms.

Thanks,
Jordan
_______________________________________________
PythonNet mailing list -- pythonnet@python.org
To unsubscribe send an email to pythonnet-le...@python.org
https://mail.python.org/mailman3/lists/pythonnet.python.org/
Member address: arch...@mail-archive.com

Reply via email to