Lines Matching refs:flagbytes
417 * @param int $flagbytes
422 public static function ZIPparseGeneralPurposeFlags($flagbytes, $compressionmethod) { argument
425 $ParsedFlags['encrypted'] = (bool) ($flagbytes & 0x0001);
428 $ParsedFlags['data_descriptor_used'] = (bool) ($flagbytes & 0x0008);
429 $ParsedFlags['enhanced_deflation'] = (bool) ($flagbytes & 0x0010);
430 $ParsedFlags['compressed_patched_data'] = (bool) ($flagbytes & 0x0020);
431 $ParsedFlags['strong_encryption'] = (bool) ($flagbytes & 0x0040);
436 $ParsedFlags['language_encoding'] = (bool) ($flagbytes & 0x0800);
438 $ParsedFlags['mask_header_values'] = (bool) ($flagbytes & 0x2000);
444 $ParsedFlags['dictionary_size'] = (($flagbytes & 0x0002) ? 8192 : 4096);
445 $ParsedFlags['shannon_fano_trees'] = (($flagbytes & 0x0004) ? 3 : 2);
450 switch (($flagbytes & 0x0006) >> 1) {