skip to content
==> README.md <==
1# @ajax/mesh-place-wire
2
3The placement peer frames, byte for byte as the Rust writes them: `F_PLACE` (a placement change: op,
4id, name, mode with its assignment, aux, then a state or a reason), `F_FRAME` (one frame's state and the
5parts its sender rendered), `F_INPUT` (input for a program's owner), and the 16-byte wire name. Each
6`*_rest_len` checks the body's declared length against its maximum before anything is read.
7
8## Ported from
9
10[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) `crates/mesh-host/src/place.rs`:
11`name16`, `name_of`, `PlaceMsg`, `FrameMsg`, `encode_input`, `input_len`, `PLACE_HEAD`, `FRAME_HEAD`,
12`INPUT_HEAD`, `AUX_AUTO`.
13
14## Tests
15
16`tests/wire.c`: the Rust's `frames_round_trip`, and the name checks of peer.rs `names_on_the_wire`.
17
18## Licence
19
20MIT. See the repository's LICENSE.