/* read an header from "source" */ static ZFASTINLINE void fastlz_read_header(const Bytef* source, uInt *type, uInt *block_size, uInt *compressed, uInt *original) { if (memcmp(&source[0], BLOCK_MAGIC, 7) == 0) { const int packed_type = READ_8(&source[7]); const int block_pow = packed_type & 0x0f; *type = packed_type & 0xf0; *compressed = READ_32(&source[8]); *original = READ_32(&source[12]); *block_size = POWER_TO_BLOCK_SIZE(block_pow); } else { *type = BLOCK_TYPE_BAD_MAGIC; *compressed = 0; *original = 0; *block_size = 0; } }
static Z_INLINE zuint16 read_16bit(M6502 *object, zuint16 address) {return (zuint16)(READ_8(address) | (zuint16)READ_8(address + 1) << 8);}