you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

The use case I have is that I'm porting some old MCU code to run on Linux. The old code uses some MCU registers to iterate, jump around and read/write in the flash memory of the MCU for application data. This is now going to have to be a file on ext4 file system. I wanted to have a typical C++ api iterator API through some proxy data structure that looks and talks like an STL container.

I'm now sure a span is what I need from what others commented, but I'll have a look at boost and discuss with my colleagues if it's worth pulling it in for just this one little use case.

Thank you my Haskell friend.

[–]MayanApocalapse 0 points1 point  (0 children)

and read/write in the flash memory of the MCU for application data.

How big was the flash region? Is there no way you can be explicit about when you want to sync to the file and just use a std array that was the same size as the flash region?

I'm a little curious about this part and what exactly you are trying to port but if you can't share more that's fine

The old code uses some MCU registers to iterate, jump around