When you asked this question 2 days ago: How to convert byte ato byte in C#
You were told:
Quote:You can't directly pass a two dimensional array, because the "arrangement" of the data is not the same.
Even worse, what you are trying to apss is not a "basic" 2D array - it's a jagged array - which means that the lines are not all the same length, or even present in some cases.
Since the name dst implies that the one dimensional array is going to be used by the called function as an output, it is vitally important to get ti right, and a jagged array is definitely not suitable, as it's first dimension is actually an array of references to individual arrays of bytes.
You cannot pass a jagged array to your function assuming that it will work: You need to create a 1D array of bytes, pass that, and probably post-process it into your 2D jagged array once you have the data, and can work out where to "break" the array.