M
M
martensit2018-08-09 13:42:50
C++ / C#
martensit, 2018-08-09 13:42:50

How to change part of byte1[12] values ​​to byte2[4] values ​​in c#?

For example there is byte1[12] = '1','1','1','1','1','1','1','1','1','1','1' ,'1',
And byte2[4] = '2','3','4','5',
You need to replace the 5th to 8th bytes with byte2[4] to get '1',' 1','1','1','2','3','4','5','1','1','1','1',
Can this be done WITHOUT a loop?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Atlant1Q, 2018-08-09
@martensit

byte2.CopyTo(byte1, 4);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question