def METHOD_NAME(self, start_offset: int, buffer: bytes) -> bool:
    for i, b in enumerate(buffer):
        self.write_memory(start_offset + i, b)
    self.logger.log_hal(f'[ec] write EC memory to offset {start_offset:X} size {len(buffer):X}:')
    if self.logger.HAL:
        print_buffer_bytes(buffer)
    return True