# std.Io.Writer.writeSliceEndian: add compile error · gitcafe/zig

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

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

Visibility: public

Requested revision: eac2bbfec9f99c27a886f4842cb9ca42584607f3

Requested commit: eac2bbfec9f99c27a886f4842cb9ca42584607f3

Commit: eac2bbfec9f99c27a886f4842cb9ca42584607f3

Tree: 3a757b77dc676619f3aace7bf1acca538b7c19fe

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Writer.writeSliceEndian: add compile error

check when an auto-layout struct is attempted to be memory reinterpreted
and written out. it would be writing undefined memory

```

## Parents

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

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