# std.io: PeekStream and SliceStream · gitcafe/zig

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

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

Visibility: public

Requested revision: 0046551852fe97dca2c295b84be3b0b4c3004e45

Requested commit: 0046551852fe97dca2c295b84be3b0b4c3004e45

Commit: 0046551852fe97dca2c295b84be3b0b4c3004e45

Tree: 9d5f5a6a6b63ced63408af8d953d17a0ddd1bc8c

Author: Nathan Sharp

Committer: Nathan Sharp

## Message

```
std.io: PeekStream and SliceStream

SliceStream is a read-only stream wrapper around a slice of bytes. It
allows adapting algorithms which work on InStreams to in-memory data.

PeekStream is a stream wrapper which allows "putting back" bytes into
the stream so that they can be read again. This will help make
look-ahead parsers easier to write.

```

## Parents

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

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