toolchain
toolchain copied to clipboard
`ti_Resize` function that preserves file contents
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.
ti_Resize was never intended to preserve file contents.
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.
Documentation added in 06c34a0d7e21551e482dff19c6ea8bcf02abb758 to note that this function doesn't preserve file contents