look up compressor name from id.
| 391 | |
| 392 | //! look up compressor name from id. |
| 393 | std::string getCompressor( int code ) |
| 394 | { |
| 395 | for( const auto &it : nameCodeMapping ) |
| 396 | { |
| 397 | if (it.second == code ) |
| 398 | { |
| 399 | return it.first; |
| 400 | } |
| 401 | } |
| 402 | return "unknown"; |
| 403 | } |
| 404 | |
| 405 | /// compress 'size' bytes at 'data' into 'outputBuffer' |
| 406 | /// compressionLevel, compressor & threadCount are passed directly to blosc ( see blosc.h ) |