@@ -429,7 +429,7 @@ visp::cnpy::NpyArray load_the_npz_array(FILE *fp, uint32_t compr_bytes, uint32_t
429429
430430// https://github.com/francescopace/cnpy/blob/4170b94634e5ff5b6925708f450480a9601627a9/cnpy.h#L187-L214
431431void visp::cnpy::compressData (size_t nbytes_uncompressed, std::vector<uint8_t > &uncompressed,
432- std::vector<uint8_t > &buffer_compressed, size_t &nbytes_on_disk, FILE *fp)
432+ std::vector<uint8_t > &buffer_compressed, size_t &nbytes_on_disk, FILE *fp)
433433{
434434 // Compress using zlib deflate (raw deflate, no zlib/gzip header)
435435 uLongf max_compressed_size = compressBound (nbytes_uncompressed);
@@ -817,13 +817,14 @@ std::vector<char> utf8_to_utf32_vec_pad(const std::string &utf8, const std::size
817817 \param[in] data_vec : Vector of std::string.
818818 \param[in] shape : Shape of the array, e.g. Nz x Ny x Nx.
819819 \param[in] mode : Writing mode, i.e. overwrite (w) or append (a) to the file.
820+ \param[in] compress_data : If true, the data is compressed using the DEFLATE algorithm.
820821 \warning This function should also work on big-endian platform, without guarantee since it has not been tested extensively.
821822 \note Original library: <a href="https://github.com/rogersce/cnpy">cnpy</a> with MIT license.
822823
823824 \sa To see how to use it, you may have a look at \ref tutorial-npz
824825 */
825826void visp::cnpy::npz_save_str (const std::string &zipname, std::string fname, const std::vector<std::string> &data_vec,
826- const std::vector<size_t > &shape, const std::string &mode, bool compress_data)
827+ const std::vector<size_t > &shape, const std::string &mode, bool compress_data)
827828{
828829 if (data_vec.empty ()) {
829830 vpException (vpException::badValue, " Input string data is empty." );
@@ -1006,13 +1007,14 @@ void visp::cnpy::npz_save_str(const std::string &zipname, std::string fname, con
10061007 \param[in] fname : Identifier for the corresponding array of data.
10071008 \param[in] data_str : C++ std::string data.
10081009 \param[in] mode : Writing mode, i.e. overwrite (w) or append (a) to the file.
1010+ \param[in] compress_data : If true, the data is compressed using the DEFLATE algorithm.
10091011 \warning This function should also work on big-endian platform, without guarantee since it has not been tested extensively.
10101012 \note Original library: <a href="https://github.com/rogersce/cnpy">cnpy</a> with MIT license.
10111013
10121014 \sa To see how to use it, you may have a look at \ref tutorial-npz
10131015 */
10141016void visp::cnpy::npz_save_str (const std::string &zipname, const std::string &fname, const std::string &data_str,
1015- const std::string &mode, bool compress_data)
1017+ const std::string &mode, bool compress_data)
10161018{
10171019 std::vector<std::string> data_vec;
10181020 data_vec.push_back (data_str);
0 commit comments