A manifest's program-table entry (PT_*) and manifest extension (PX_*) bytes
$ sexc add @ajax/mesh-manifest-encode- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 02:57v/# 1 version
- drwxr-xr-x-Oct 27 02:57files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 02:57 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-manifest ^0.1.0, @ajax/mesh-abi-program-table ^0.1.0, @ajax/mesh-abi-ext ^0.1.0, @ajax/mesh-abi-base ^0.1.0, @ajax/mesh-abi-placement ^0.1.0, @ajax/mesh-abi-fnv ^0.1.0, @ajax/mesh-check ^0.1.0
- dependents
- @ajax/mesh-driver, @ajax/mesh-inproc, @ajax/mesh-load-text, @ajax/mesh-mps, @ajax/mesh-native, @ajax/mesh-prog-table, @ajax/mesh-snapshot
- keywords
- mesh alphaos manifest program-table encode
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-manifest-encode
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-manifest-encode 2 3The bytes a manifest puts in the mailbox: the program-table entry (PT_*, with PT_STATE and PT_GEN left zero for the seqlock writer) and the manifest extension (PX_*: counter names, fields, place cap, param, shared and scratch bytes). 4 5## Ported from 6 7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/manifest.rs (`Image`, `encode_entry`, `encode_ext`). 8 9## Tests 10 11`tests/golden.c`: 5696 manifests (`tests/data/manifests.in`) against what the Rust printed for each (`tests/data/manifests.rust`): the verdict and error message, the fnv1a64 of the manifest's `{:?}`, of the entry and of the extension, threads, shared memory and the place parts. One case per distinct Rust verdict out of 23396 generated. 12 13## Licence 14 15MIT. See the repository's LICENSE.