Skip to content

Commit 704fa5f

Browse files
committed
Note the signedness caveat for plugin authors
1 parent eabd06e commit 704fa5f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

PluginSDK/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ and `remainingBytes(_:)`.
5555
(compile-time literal), `text` (UTF-8 from the payload), `bytes` (rendered as hex by the app), and
5656
`uuid`. Keys, labels and units are `StaticString` so they cost no allocation.
5757

58+
Note that CBOR does not carry signedness: a value written with `int` arrives on the host as an
59+
unsigned value whenever it is non-negative. The host compares integers numerically, so this does
60+
not affect correctness or display — but do not expect the signed/unsigned distinction to survive
61+
the boundary.
62+
5863
## Building
5964

6065
```sh

0 commit comments

Comments
 (0)