Dec-10-2022, 12:07 AM
Hi all.
i`ve got an fixed Bytearray which consist of a $40 Bytes FileHeader and $10 Bytes Packet Header followed by $2000 Bytes Raw data
From that Array i need to Extract the first Package ($2000 Bytes) Starting at $0050, save it and then extracht the next Pack at $2060, save, next Package at $4070 and so on until i reach the End of the Array.
I thought best way is to Copy the wanted data to a new array and save it from there and when finished grab new Data. Sadly i fail to code a working Function that Grabs the Data from the Source Array. Anybody here who can give me a hint how to start ?
Thanks for reading
i`ve got an fixed Bytearray which consist of a $40 Bytes FileHeader and $10 Bytes Packet Header followed by $2000 Bytes Raw data
From that Array i need to Extract the first Package ($2000 Bytes) Starting at $0050, save it and then extracht the next Pack at $2060, save, next Package at $4070 and so on until i reach the End of the Array.
I thought best way is to Copy the wanted data to a new array and save it from there and when finished grab new Data. Sadly i fail to code a working Function that Grabs the Data from the Source Array. Anybody here who can give me a hint how to start ?
Thanks for reading