# std.Io.Reader: rework peekDelimiterInclusive · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d83d79c032cf72d26a20068c9f5172b8dba56df8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d83d79c032cf72d26a20068c9f5172b8dba56df8

Requested commit: d83d79c032cf72d26a20068c9f5172b8dba56df8

Commit: d83d79c032cf72d26a20068c9f5172b8dba56df8

Tree: 8e5418be95c2c2a40015d3eb71841c7d6ac4380e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Reader: rework peekDelimiterInclusive

Now it's based on calling fillMore rather than an illegal aliased stream
into the Reader buffer.

This commit also includes a disambiguation block inspired by #25162. If
`StreamTooLong` was added to `RebaseError` then this logic could be
replaced by removing the exit condition from the while loop. That error
code would represent when `buffer` capacity is too small for an
operation, replacing the current use of asserts.

```

## Parents

- [b9f8b6ef0649f4bbbd9e24c51ec65a91a8bc5e67](https://git.cafe/gitcafe/zig/commit/b9f8b6ef0649f4bbbd9e24c51ec65a91a8bc5e67?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d83d79c032cf72d26a20068c9f5172b8dba56df8?format=markdown)
