map blosc compressor name to a int which we can serialise into the indexedIO header. We don't use the blosc header defined values incase they change.
| 380 | //! map blosc compressor name to a int which we can serialise into |
| 381 | //! the indexedIO header. We don't use the blosc header defined values incase they change. |
| 382 | int getCompressionCode( const std::string &compressor ) |
| 383 | { |
| 384 | const auto it = nameCodeMapping.find( compressor ); |
| 385 | if( it != nameCodeMapping.end() ) |
| 386 | { |
| 387 | return it->second; |
| 388 | } |
| 389 | return -1; |
| 390 | } |
| 391 | |
| 392 | //! look up compressor name from id. |
| 393 | std::string getCompressor( int code ) |