Closed wgtdkp closed 4 years ago
Merging #151 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #151 +/- ##
=======================================
Coverage 70.09% 70.09%
=======================================
Files 52 52
Lines 4751 4751
=======================================
Hits 3330 3330
Misses 1421 1421
This PR helps SWIG to map Java
byte
to/from C++uint8_t
when it is used forstd::vector<uint8_t>
.SWIG by default maps Java
short
to/from C++uint8_t
because Javabyte
is a signed integer that cannot hold all values ofuint8_t
. But when it comes to a byte array, it doesn't matter whether it is signed or unsigned and we'd like to mapuint8_t
to/from Javabyte
because they have the same width.The CHIP PR https://github.com/project-chip/connectedhomeip/pull/2492 depends on this (see the discussion).