# std: Add mem.nativeIntToBig and mem.nativeIntToLittle · gitcafe/zig

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

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

Visibility: public

Requested revision: 211f0a2226db7c53cfa1581c5572a6100c3e17f6

Requested commit: 211f0a2226db7c53cfa1581c5572a6100c3e17f6

Commit: 211f0a2226db7c53cfa1581c5572a6100c3e17f6

Tree: c3f321972a86a0cb0d9357d37a5c0572bfc95366

Author: daurnimator

Committer: Andrew Kelley

## Message

```
std: Add mem.nativeIntToBig and mem.nativeIntToLittle

To be used where `htons`, `htonl`, etc. would be used in C.
It's useful to have a function that returns a number directly for use in initialisers.

```

## Parents

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

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