Avatar of srinivasakella

asked on 

Byte Array to Structure Conversion in C++


I have a Byte array in which , different structures are placed back to back
in contiguously.

Now I need to split this byte array into different structures.
 Right Now I am using "memcpy" for parsing. But I would like to have custom function
for converting this byte array into desired structure.

My idea is split the byte array into different byte arrays according to the size of the structures.
Then converting these byte arrays into corresponding structures using using some custom function .

I need to do this C++.

Editors IDEsC++

Avatar of undefined
Last Comment

8/22/2022 - Mon