IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

pack_payload2

def pack_payload2(hi: Int, lo: Int) -> Int

Packs a two-field ring payload as (hi:u12 << 12) | lo:u12.

Mirrors the existing pack_phase_pool little-fields-low style. Used for the (expert, m-block/pool) and (expert, target-rank) event payloads.

Args:

  • ​hi (Int): High 12-bit field (max 4095).
  • ​lo (Int): Low 12-bit field (max 4095).

Returns:

Int: The packed u24 payload.

Was this page helpful?