开发者

how to declare a byte[] in C# so that ironpython interprets it as byte[] and not as a tuple [closed]

开发者 https://www.devze.com 2022-12-18 04:50 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

In a C++/CLI we have a function that returns this:

array<Byte>^ OutBuffer = gcnew array<Byte>(BufferSize);

IronPython treats it as a byte[].

In C#, we have a function that returns this:

OutBuffer = new Byt开发者_开发百科e[InBuffer.Length];

While a C# client treats Outbuffer as a byte[], IronPython treats it as a tuple containing multiple arrays.

How do we make IronPython relate to OutBuffer as a byte[] and not as a tuple?

Why the discrepancy between the C# and C++/CLI?

EDIT: This question is posed and apparently solved, but no answer supplied. Can this be corrected?

0

精彩评论

暂无评论...
验证码 换一张
取 消