qxmpp-project / qxmpp

Cross-platform C++ XMPP client and server library
410 stars 197 forks source link

BitsOfBinaryData: Add fromByteArray() utility function #462

Closed lnjX closed 2 years ago

lnjX commented 2 years ago

It automatically hashes the data and creates a content ID.

PR check list:

codecov[bot] commented 2 years ago

Codecov Report

Merging #462 (2c0e356) into master (50be942) will increase coverage by 0.01%. The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
+ Coverage   68.63%   68.65%   +0.01%     
==========================================
  Files         275      275              
  Lines       23905    23918      +13     
==========================================
+ Hits        16407    16420      +13     
  Misses       7498     7498              
Impacted Files Coverage Δ
src/base/QXmppBitsOfBinaryData.h 100.00% <ø> (ø)
...pphttpuploadmanager/tst_qxmpphttpuploadmanager.cpp 67.48% <0.00%> (ø)
tests/util.h 86.27% <ø> (ø)
src/base/QXmppBitsOfBinaryData.cpp 100.00% <100.00%> (ø)
...ts/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp 100.00% <100.00%> (ø)
tests/qxmppomemodata/tst_qxmppomemodata.cpp 98.25% <0.00%> (+<0.01%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.