Skip to content

Update offset when calling 'Proxy.unpack'#4

Merged
lmlg merged 1 commit intomainfrom
update-off
Mar 5, 2026
Merged

Update offset when calling 'Proxy.unpack'#4
lmlg merged 1 commit intomainfrom
update-off

Conversation

@lmlg
Copy link
Copy Markdown
Owner

@lmlg lmlg commented Mar 5, 2026

This PR modifies the behaviour of the method 'unpack' in the 'Proxy' class so that after it returns successfully, its internal offset is updated so that it now points to the next object (if any).

The main motivation behind this change is so that custom (un)packers don't need to fiddle with computing offsets manually, which can be very error prone.

This PR modifies the behaviour of the method 'unpack' in the 'Proxy'
class so that after it returns successfully, its internal offset
is updated so that it now points to the next object (if any).

The main motivation behind this change is so that custom (un)packers
don't need to fiddle with computing offsets manually, which can be
very error prone.
@lmlg lmlg merged commit 257e78a into main Mar 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant