This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello everyone,
If I allocate 100 Bytes of space for FEE Block 1, can I use the first 60 Bytes of Block 1 and the other 40 Bytes by adding different data?
For example, writing Buffer1 data to the first 60 Bytes of Block 1 and writing Buffer2 data to the last 40 Bytes of Block 1.
Thank you for your help.
Greetings
Fatih
Hi Fatih,
No, it is not possible,
You can't append new block data with old block data with FEE driver.
I will suggest you two alternative ways:
1. If you want to do such thing then you should manually do it in application code, for example if you write 60 data in block-1 for the first time and now you want to append the 40 bytes of data to the block-1 then first read the block-1 data using FEE read function and now add the 40 bytes to the old 60 bytes and now you can write 100 bytes using FEE write function.
2. The second way is that you should need to create two blocks, block-1 with 60 bytes and block-2 with 40 bytes. Whenever you need two write 100 bytes you should need split them at application level and also whenever you want to read 100 bytes then again you need to read two block and combinte the data.
--
Thanks & regards,
Jagadish.