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

Add Slice method for EoReader #7

Merged
merged 2 commits into from
Aug 4, 2023
Merged

Add Slice method for EoReader #7

merged 2 commits into from
Aug 4, 2023

Conversation

ethanmoffat
Copy link
Owner

@ethanmoffat ethanmoffat commented Aug 4, 2023

Returns a new reader with a slice of the underlying data.

This is useful in the case of INIT_INIT packets for friend list or online player list. Since PacketFamily_Init and PacketAction_Init are 255 bytes, they are treated as break bytes by the reader which causes issues.

Slice should be called prior to reading packet data, but after the handling of sequence numbers in the packet.

@ethanmoffat ethanmoffat merged commit 69bfb26 into master Aug 4, 2023
1 check passed
@ethanmoffat ethanmoffat deleted the reader_slice branch August 4, 2023 21:59
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