def METHOD_NAME(self, phys_address: int, length: int, buf: bytes) -> int:
    if self.logger.HAL:
        self.logger.log(f'[mem] buffer len = 0x{length:X} to PA = 0x{phys_address:016X}')
        print_buffer_bytes(buf)
    return self.helper.write_phys_mem(phys_address, length, buf)