int compressionBlockTypeSupported()

in dmg/compress.c [151:166]


int compressionBlockTypeSupported(uint32_t type)
{
  switch (type) {
    case BLOCK_ADC:
    case BLOCK_BZIP2:
    case BLOCK_ZLIB:
#ifdef HAVE_LIBLZMA
    case BLOCK_LZMA:
#endif
#ifdef HAVE_LZFSE
    case BLOCK_LZFSE:
#endif
      return 0;
  }
  return 1;
}