Most efficient way to merge 2 byte arrays into 1 byte array?

In our Tcpclient we like to use Buffer. BlockCopy instead of array. Copy See this question for more info: Array.

Copy vs Buffer. BlockCopy And this one for hard numbers: Best way to combine two or more byte arrays in C.

In our Tcpclient we like to use Buffer. BlockCopy instead of array.copy. See this question for more info: Array.

Copy vs Buffer. BlockCopy And this one for hard numbers: Best way to combine two or more byte arrays in C.

Your existing approach is the most efficient (for what I think is the commonly understood meaning of "efficient") as long as it is implemented properly. The implementation should look like this: var merged = new bytearray1. Length + array2.

Length; array1. CopyTo(merged, 0); array2. CopyTo(merged, array1.

Length).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions