swamp-abi-memtypes 0.0.1

Swamp ABI MemTypes
Documentation
  • Coverage
  • 5.56%
    1 out of 18 items documented0 out of 12 items with examples
  • Size
  • Source code size: 9.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 607.19 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • piot

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

  • MemoryAlignmentU8 | U16 | U32 | U64 (byte-based).
  • MemorySize(u32) — size in bytes (friendly Display via human_memsize).
  • MemoryOffset(u32) — byte offset (+HHHH hex Display).
  • Helpers: align, align_to, adjust_size_to_alignment.

Install

[dependencies]
swamp-abi-memtypes = "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