# Add \`abi_size\` parameter to read/writeTwosComplement · gitcafe/zig

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

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

Visibility: public

Requested revision: 7b72fc6bbc5554643bc27933310899e32783b81b

Requested commit: 7b72fc6bbc5554643bc27933310899e32783b81b

Commit: 7b72fc6bbc5554643bc27933310899e32783b81b

Tree: c367a314c4e46e4bcefce3d5f9ab21addc3620cc

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
Add `abi_size` parameter to read/writeTwosComplement

Big-int functions were updated to respect the provided abi_size, rather
than inferring a potentially incorrect abi_size implicitly.

In combination with the convention that any required padding bits are
added on the MSB end, this means that exotic integers can potentially
have a well-defined memory layout.

```

## Parents

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

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