Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ti_Resize function that preserves file contents #491

Open
runer112 opened this issue Jul 24, 2024 · 3 comments
Open

ti_Resize function that preserves file contents #491

runer112 opened this issue Jul 24, 2024 · 3 comments

Comments

@runer112
Copy link
Member

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.

@mateoconlechuga
Copy link
Member

ti_Resize was never intended to preserve file contents.

@adriweb
Copy link
Member

adriweb commented Aug 3, 2024

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.

@mateoconlechuga
Copy link
Member

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

@mateoconlechuga mateoconlechuga changed the title ti_Resize unintuitively adds/removes bytes at the start of the file ti_Resize function that preserves file contents Oct 6, 2024
@mateoconlechuga mateoconlechuga self-assigned this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants