# std.Io: handle packed structs better · gitcafe/zig

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

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

Visibility: public

Requested revision: deb9f3e88ff309da542f4fd5063f1f1a05cae27d

Requested commit: deb9f3e88ff309da542f4fd5063f1f1a05cae27d

Commit: deb9f3e88ff309da542f4fd5063f1f1a05cae27d

Tree: eb3ac0c2bad28e850926f477c99df9fc898792df

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io: handle packed structs better

Rather than having the endian-suffixed functions be the preferred ones
the unsuffixed ones are the preferred ones and the tricky functions get
a special suffix.

Makes packed structs read and written the same as integers.

closes #12960

```

## Parents

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

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