Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Dec 2, 2024

Problem:

  • Message definitions can't easily be combined, especially when the locations of fields are fixed in definitions and it would be useful to pack two or more messages together.
  • See issue Aggregate multiple messages into one #653

Solution:

  • Add primitives for combining messages:
    • shifted_by on fields and messages to increment their location(s)
    • msg::combine to naively combine multiple messages together
    • msg::pack to concatenate messages according to desired alignment

Notes:

  • at has been simplified

Problem:
- Message definitions can't easily be combined, especially when the locations of
  fields are fixed in definitions and it would be useful to pack two or more
  messages together.
- See issue intel#653

Solution:
- Add primitives for combining messages:
  - `shifted_by` on fields and messages to increment their location(s)
  - `msg::combine` to naively combine multiple messages together
  - `msg::pack` to concatenate messages according to desired alignment

Notes:
- `at` has been simplified
@lukevalenty lukevalenty merged commit c2639b4 into intel:main Dec 9, 2024
22 checks passed
@elbeno elbeno deleted the combine-messages branch January 17, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants