# wasm: airStructFieldVal \- Support packed structs · gitcafe/zig

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

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

Visibility: public

Requested revision: eb2caf939023bba16e473661d4f3cd1c19616e53

Requested commit: eb2caf939023bba16e473661d4f3cd1c19616e53

Commit: eb2caf939023bba16e473661d4f3cd1c19616e53

Tree: c7c5fc7da6b90d3baf394ef8022a180369f60597

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: airStructFieldVal - Support packed structs

This implements loading a field from a packed struct, regardless of
its field's type. This means it supports pointers, floats and
integers. The commit also extracts the logic from airTrunc into its
own `trunc` function so it can be re-used.

```

## Parents

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

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