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

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

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

IronPython views it as byte[].

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

OutBuffer = new Byte[InBuffer.Length];

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

How to force IronPython to treat OutBufferas byte[], rather than as a tuple?

Why is there a discrepancy between C # and C ++ / CLI?

EDIT: This question has been posed and apparently resolved, but there was no answer. Could this be fixed?

+3
source share

Source: https://habr.com/ru/post/1729878/


All Articles