# flate: option to fill BitReader · gitcafe/zig

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

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

Visibility: public

Requested revision: 711281602a0efdd3b194c0419e8bccc2bb399167

Requested commit: 711281602a0efdd3b194c0419e8bccc2bb399167

Commit: 711281602a0efdd3b194c0419e8bccc2bb399167

Tree: 28640cc1a1a714fa2bd0e8c6abcafcd22646768a

Author: Igor Anić

Committer: Igor Anić

## Message

```
flate: option to fill BitReader

fill(0) will fill all bytes in bit reader. If bit reader is aligned to
the byte, as it is at the end of the stream this ensures no overshoot
when reading footer. Footer is 4 bytes (zlib) or 8 bytes (gzip). For
zlib we will use 4 bytes BitReader and 8 for gzip. After align and fill
we will read those bytes and leave BitReader empty after that.

```

## Parents

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

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