Beispiel #1
0
// dump version : what behavior in fold ?
bool right_word(event * msg)
{
	auto buff = get_buffer_info_by_ll_bid(msg->byte_buffer_id);
	u64 save_off = buff->cursor_it()->offset(); // push_mark // pop_mark -> mark_stack

	auto end_off = buff->raw_buffer()->size();
	if (save_off == end_off) {
		return true;
	}

	auto & it = *buff->cursor_it();

	bool start_on_word = belong_to_word(*it);

	if (start_on_word == false ) {
		while (!belong_to_word(*it)) {
			++it;
		}
	}

	while (belong_to_word(*it)) {
		++it;
	}

	set_ui_change_flag(process_ev_ctx);

	return true;
}
Beispiel #2
0
uint8_t *BufferPtr::host_ptr() const {
    return raw_buffer()->host;
}
Beispiel #3
0
int Buffer::free_dev_buffer() {
    return halide_device_free(NULL, raw_buffer());
}
Beispiel #4
0
int Buffer::copy_to_device() {
  return halide_copy_to_device(NULL, raw_buffer(), NULL);
}
Beispiel #5
0
int Buffer::device_sync() {
    return halide_device_sync(NULL, raw_buffer());
}
Beispiel #6
0
int Buffer::copy_to_host() {
    return halide_copy_to_host(NULL, raw_buffer());
}