Skip to content

ti_Resize function that preserves file contents #491

@runer112

Description

@runer112
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.

Activity

mateoconlechuga

mateoconlechuga commented on Aug 3, 2024

@mateoconlechuga
Member

ti_Resize was never intended to preserve file contents.

adriweb

adriweb commented on Aug 3, 2024

@adriweb
Member

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

mateoconlechuga commented on Oct 6, 2024

@mateoconlechuga
Member

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

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @adriweb@runer112@mateoconlechuga

      Issue actions

        `ti_Resize` function that preserves file contents · Issue #491 · CE-Programming/toolchain