Skip to content

Add BinaryReaderExtensions ported from Ressy#13

Merged
Tyrrrz merged 6 commits intoprimefrom
copilot/add-binary-reader-extensions-again
Apr 12, 2026
Merged

Add BinaryReaderExtensions ported from Ressy#13
Tyrrrz merged 6 commits intoprimefrom
copilot/add-binary-reader-extensions-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 12, 2026

  • Resolve PowerKit/Extensions/BinaryReaderExtensions.cs: keep our IsEndOfStream + SkipPadding, adopt prime's SkipZeroes (uses PeekChar()), keep prime's doc for ReadNullTerminatedString
  • Resolve PowerKit.Tests/BinaryReaderExtensionsTests.cs: keep our IsEndOfStream + SkipPadding tests, adopt prime's SkipZeroes tests (more comprehensive)
  • Run tests to verify (94 tests pass)

…s, ReadNullTerminatedString

Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/5bda059e-c395-49c1-8872-69ad89f263c3

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
@Tyrrrz
Copy link
Copy Markdown
Owner

Tyrrrz commented Apr 12, 2026

@copilot please resolve conflicts

…eader-extensions-again

# Conflicts:
#	PowerKit.Tests/BinaryReaderExtensionsTests.cs
#	PowerKit/Extensions/BinaryReaderExtensions.cs

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Copilot AI requested a review from Tyrrrz April 12, 2026 17:16
@Tyrrrz Tyrrrz marked this pull request as ready for review April 12, 2026 17:18
Copilot AI review requested due to automatic review settings April 12, 2026 17:18
Comment thread PowerKit.Tests/BinaryReaderExtensionsTests.cs Outdated
Copilot AI requested a review from Tyrrrz April 12, 2026 17:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ports BinaryReaderExtensions functionality from Ressy into PowerKit, adding end-of-stream/padding helpers and aligning test coverage for the new/merged behaviors.

Changes:

  • Added IsEndOfStream and SkipPadding to BinaryReader extensions.
  • Added/updated unit tests for IsEndOfStream and SkipPadding, and adjusted an empty-string assertion style.
  • Kept/adopted behavior for SkipZeroes and ReadNullTerminatedString per PR description.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
PowerKit/Extensions/BinaryReaderExtensions.cs Introduces IsEndOfStream and SkipPadding on BinaryReader.
PowerKit.Tests/BinaryReaderExtensionsTests.cs Adds tests for IsEndOfStream/SkipPadding and refines an assertion for empty string.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread PowerKit/Extensions/BinaryReaderExtensions.cs Outdated
Comment thread PowerKit/Extensions/BinaryReaderExtensions.cs Outdated
Comment thread PowerKit/Extensions/BinaryReaderExtensions.cs Outdated
Comment thread PowerKit.Tests/BinaryReaderExtensionsTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Tyrrrz and others added 2 commits April 12, 2026 21:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/a047cadd-639b-40d7-b494-0874f7cc912c

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 12, 2026

@copilot please resolve conflicts

Conflicts resolved — pulled the ReadChar()ReadByte() update from the remote, then applied the boundaryBitsboundaryBytes rename on top (a951279).

@Tyrrrz Tyrrrz merged commit 65ee2ea into prime Apr 12, 2026
7 checks passed
@Tyrrrz Tyrrrz deleted the copilot/add-binary-reader-extensions-again branch April 12, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants