Repository navigation
Document put_be and put_le helpers for writing integers into byte buffers - #318
Conversation
✅ Deploy Preview for esphome-dev-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the integer-to-buffer helper documentation update.
No open issues 🎉
What changed in this PR
Documents the integer-to-buffer helpers introduced in esphome/esphome#22211, adding guidance alongside the existing raw device data helpers.
Changes:
- Describes the five big- and little-endian write helpers with a before-and-after example.
- Explains pointer chaining, fixed write widths, signed values, and alignment requirements, and points to helpers for decoding bytes.
| File | Description |
|---|---|
src/content/docs/contributing/code.md |
Adds a section on writing integers into existing byte buffers. |
Review effort: Balanced
|
ESPHome Bot (@esphbot) review |
|
ESPHome Bot (@esphbot) review |
|
ESPHome Bot (@esphbot) review |
|
|
ESPHome Bot (esphbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
|
ESPHome Bot (@esphbot) review |
PR Review — Document put_be and put_le helpers for writing integers into byte buffersApprove: the one finding from the last review is fixed, and nothing new came up. What works well:
No open issues. Checklist
Automated review by Kōan (Claude) |
ESPHome Bot (esphbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
Description
Documents
put_be16(),put_be24(),put_be32(),put_le16()andput_le32()fromesphome/core/helpers.h, which write an integer into an existing byte buffer and return the pointer past it, in the "Helpers for raw device data" section next to the checksum helpers.Pull request in esphome this documents (if applicable):