Region layout checks: (offset, bytes) fields, overlap and extent
$ sexc add @ajax/mesh-abi-fields- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 01:45v/# 1 version
- drwxr-xr-x-Oct 27 01:45files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 01:45 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0
- dependents
- @ajax/mesh-abi, @ajax/mesh-abi-control-block, @ajax/mesh-abi-ext, @ajax/mesh-abi-header, @ajax/mesh-abi-host-fields, @ajax/mesh-abi-host-fleet, @ajax/mesh-abi-host-links, @ajax/mesh-abi-host-members, @ajax/mesh-abi-host-mload, @ajax/mesh-abi-host-nics, @ajax/mesh-abi-host-pload, @ajax/mesh-abi-node, @ajax/mesh-abi-node-load, @ajax/mesh-abi-pipe-table
- keywords
- mesh alphaos abi gpu fields
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-abi-fields
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-abi-fields 2 3Region layout checks: (offset, bytes) fields, overlap and extent. 4 5Part of the mesh contract: the memory, control, snapshot and peer protocols shared by meshd, its GPU 6programs (CUDA kernels, wasm lanes, native workers) and the tools. Every side compiles the same 7definitions, so an offset can never disagree. 8 9```c 10#include "mesh/abi/fields.h" 11``` 12 13## Ported from 14 15[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-abi/src/v2.rs (disjoint, fields_end; the (offset, bytes) tables). 16 17## Device code 18 19The header is freestanding (`<stdint.h>`, `<stddef.h>`, `<stdbool.h>` only): it compiles for the host, `nvptx64-nvidia-cuda` and `wasm32`. Functions the Rust marks `const fn` are `static inline` here. 20 21## Tests 22 23- none of its own: it is exercised by the packages that use it 24 25## Licence 26 27MIT. See the repository's LICENSE.