swamp-abi-memtypes
Strongly-typed sizes, offsets, and alignments for Swamp’s ABI/layout code. Small, predictable, and focused on avoiding “bytes vs elements” mixups.
What it provides
MemoryAlignment—U8 | U16 | U32 | U64(byte-based).MemorySize(u32)— size in bytes (friendlyDisplayviahuman_memsize).MemoryOffset(u32)— byte offset (+HHHHhexDisplay).- Helpers:
align,align_to,adjust_size_to_alignment.
Install
[]
= "0.0.1"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright
Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/abi