Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

While tedious, you can do the rewrite block-wise from the insertion point and only store a an additional block's worth of the rest (or twice as much as you inserted)

ABCDE, to insert 1 after C: store D, overwrite D with 1, store E, overwrite E with D, write E.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: