# Implement bitOffsetOf · gitcafe/zig

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

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

Visibility: public

Requested revision: 5cbb35abd06f7975c17b0a188b7a1b88e08dbd1e

Requested commit: 5cbb35abd06f7975c17b0a188b7a1b88e08dbd1e

Commit: 5cbb35abd06f7975c17b0a188b7a1b88e08dbd1e

Tree: 8d1333ace9bceffc955f651c54dead2d2c15b5c6

Author: Jimmi Holst Christensen

Committer: Jimmi Holst Christensen

## Message

```
Implement bitOffsetOf

This also refactors getting struct field offsets into two
iterators. This will be useful when implementing bitCast at comptime on
structs.

```

## Parents

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

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