def METHOD_NAME(self) -> None:
    if self.offset:
        val = self._ec.read_idx(self.offset)
        self.logger.log(f'[CHIPSEC] EC index I/O: reading memory offset 0x{self.offset:X}: 0x{val:X}')
    else:
        self.logger.log("[CHIPSEC] EC index I/O: dumping memory...")
        mem = [self._ec.read_idx(off) for off in range(0x10000)]
        print_buffer_bytes(mem)