You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tcarmelveilleux
changed the title
Extende the BufferReader and BufferWriter to handle signed integers
Extend the BufferReader and BufferWriter to handle signed integers
Jul 5, 2023
Problem:
- Safe buffer reader/writer doesn't support signed values
- Safe buffer reader/writer doesn't support bools
- Fixesproject-chip#27629
This PR:
- Adds signed and bool support to BufferWriter and to Reader
- Adds missing unit tests
- Makes it clear that low-level reads are not to be used directly
Testing done:
- Integration tests pass
- New unit tests added and pass
- Existing unit tests all pass
* Add support for signed/bool to BufferReader/Writer
Problem:
- Safe buffer reader/writer doesn't support signed values
- Safe buffer reader/writer doesn't support bools
- Fixes#27629
This PR:
- Adds signed and bool support to BufferWriter and to Reader
- Adds missing unit tests
- Makes it clear that low-level reads are not to be used directly
Testing done:
- Integration tests pass
- New unit tests added and pass
- Existing unit tests all pass
* Restyled by clang-format
---------
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Feature description
The
BufferReader
andBufferWriter
classes in/src/lib/support
do not currently support the reading and writing of signed integers.Add reading and writhing of
in8_t
,int16_t
,intu32_t
andint64_t
.Platform
all
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: