Move bytes from source to dest.

  • Thread starter Thread starter carmen
  • Start date Start date
C

carmen

I don't know if it's possible some kind of "move" function to move bytes
from a source to a destination automatically.
Thanks
Carmen
 
Hi Carmen,

That was _very_ vague :P And the answer depends entirely upon what source and destination you have in mind.

Happy coding!
Morten Wennevik [C# MVP]
 
I need to move bytes between two "arrays" (sorry about my Pascal way to
speak), from byte[] to byte[] and wonder if there is some "automatic" way.
Thanks

Morten Wennevik said:
Hi Carmen,

That was _very_ vague :P And the answer depends entirely upon what source
and destination you have in mind.
Happy coding!
Morten Wennevik [C# MVP]
 
Hi carmen,

Yes, there is. Use Buffer.BlockCopy or Array.Copy. The former should work
faster while the later is more generic.

HTH
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

carmen said:
I need to move bytes between two "arrays" (sorry about my Pascal way to
speak), from byte[] to byte[] and wonder if there is some "automatic" way.
Thanks

Morten Wennevik said:
Hi Carmen,

That was _very_ vague :P And the answer depends entirely upon what
source
and destination you have in mind.
Happy coding!
Morten Wennevik [C# MVP]
 
Thank you!!!


Miha Markic said:
Hi carmen,

Yes, there is. Use Buffer.BlockCopy or Array.Copy. The former should work
faster while the later is more generic.

HTH
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

carmen said:
I need to move bytes between two "arrays" (sorry about my Pascal way to
speak), from byte[] to byte[] and wonder if there is some "automatic" way.
Thanks

Morten Wennevik said:
Hi Carmen,

That was _very_ vague :P And the answer depends entirely upon what
source
and destination you have in mind.
Happy coding!
Morten Wennevik [C# MVP]
 
Back
Top