Commit f8a6988
committed
feat(mctp-rs): add MctpMessageBuffer::body() + message_type() accessors
Expose the message body slice and message_type byte on MctpMessageBuffer
so callers can read raw bytes without going through MctpMessage::parse_as.
Use case: a consumer wants to parse a small fixed-layout payload (e.g.,
4 little-endian u32 fields for ACPI BST) without defining a full
MctpMessageTrait impl just to access self.message_buffer.rest.
Pure additive: no public API removed; existing parse_as / can_parse_as
paths unchanged.1 parent b47c07b commit f8a6988
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
214 | 230 | | |
215 | 231 | | |
216 | 232 | | |
| |||
0 commit comments