toolchain icon indicating copy to clipboard operation
toolchain copied to clipboard

`ti_Resize` function that preserves file contents

Open runer112 opened this issue 1 year ago • 3 comments

I would expect ti_Resize to add/remove bytes at the current offset, or maybe at the end, but it instead appears to do so at the start of the file.

runer112 avatar Jul 24 '24 14:07 runer112

ti_Resize was never intended to preserve file contents.

mateoconlechuga avatar Aug 03 '24 18:08 mateoconlechuga

Since we can't modify the function's behavior now anyway, the consensus on Discord was to create a new function that does this, if needed.

adriweb avatar Aug 03 '24 18:08 adriweb

Documentation added in 06c34a0d7e21551e482dff19c6ea8bcf02abb758 to note that this function doesn't preserve file contents

mateoconlechuga avatar Oct 06 '24 15:10 mateoconlechuga