Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Conversation

@tigerros
Copy link
Contributor

@tigerros tigerros commented Jun 20, 2025

  • Adds new docs in buffer.rs.
  • Restores docs in BufferedReader methods (they were deleted for some reason).
  • Isolates certain logic into constants.
  • Isolates certain logic into separate functions.
  • Isolates Read from BufferedReader to buffer.rs, preventing accidental usage elsewhere.
  • Buffer::ensure_bytes now backshifts only when necessary, not just if buffer.start is greater than 0.
  • Renames Buffer fields for clarity.
  • Adds a debug_assert in Buffer::data that reflects the safety comment.
  • Fixes some non-controversial Clippy warnings.

@tigerros tigerros marked this pull request as draft June 23, 2025 12:56
@tigerros tigerros marked this pull request as ready for review June 23, 2025 16:11
clean up buffer

back to box

move Read to Buffer

Delete sample.pgn

compile time `N` in ensure_bytes

optimize, impl Read for Buffer

add bench

rename index to start and len to end

rename discard_data to clear, doc fixes

fix comment, import Range

remove Buffer Read, back to Chained

remove time taken from validate example

remove benchmark

not relevant

fix `Buffer::into_inner`

revert `BufferedReader::into_inner`

add docs to `BufferedReader`, some clippy
@tigerros tigerros changed the title Cleaner buffer and reader Cleaner buffer and reader (mostly) Jun 24, 2025
@tigerros
Copy link
Contributor Author

Moved to niklasf/shakmaty#105

@tigerros tigerros closed this Jun 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant