• Home
  • Raw
  • Download

Lines Matching refs:evbuf

298 msg_marshal(struct evbuffer *evbuf, const struct msg *tmp){  in msg_marshal()  argument
299 evtag_marshal_string(evbuf, MSG_FROM_NAME, tmp->from_name_data); in msg_marshal()
300 evtag_marshal_string(evbuf, MSG_TO_NAME, tmp->to_name_data); in msg_marshal()
302 evtag_marshal_kill(evbuf, MSG_ATTACK, tmp->attack_data); in msg_marshal()
308 evtag_marshal_run(evbuf, MSG_RUN, tmp->run_data[i]); in msg_marshal()
315 msg_unmarshal(struct msg *tmp, struct evbuffer *evbuf) in msg_unmarshal() argument
318 while (evbuffer_get_length(evbuf) > 0) { in msg_unmarshal()
319 if (evtag_peek(evbuf, &tag) == -1) in msg_unmarshal()
327 if (evtag_unmarshal_string(evbuf, MSG_FROM_NAME, &tmp->from_name_data) == -1) { in msg_unmarshal()
338 if (evtag_unmarshal_string(evbuf, MSG_TO_NAME, &tmp->to_name_data) == -1) { in msg_unmarshal()
352 if (evtag_unmarshal_kill(evbuf, MSG_ATTACK, tmp->attack_data) == -1) { in msg_unmarshal()
369 if (evtag_unmarshal_run(evbuf, MSG_RUN, tmp->run_data[tmp->run_length]) == -1) { in msg_unmarshal()
407 evtag_unmarshal_msg(struct evbuffer *evbuf, ev_uint32_t need_tag, struct msg *msg) in evtag_unmarshal_msg() argument
414 if (evtag_unmarshal(evbuf, &tag, tmp) == -1 || tag != need_tag) in evtag_unmarshal_msg()
428 evtag_marshal_msg(struct evbuffer *evbuf, ev_uint32_t tag, const struct msg *msg) in evtag_marshal_msg() argument
433 evtag_marshal_buffer(evbuf, tag, buf_); in evtag_marshal_msg()
618 kill_marshal(struct evbuffer *evbuf, const struct kill *tmp){ in kill_marshal() argument
619 evtag_marshal_string(evbuf, KILL_WEAPON, tmp->weapon_data); in kill_marshal()
620 evtag_marshal_string(evbuf, KILL_ACTION, tmp->action_data); in kill_marshal()
625 evtag_marshal_int(evbuf, KILL_HOW_OFTEN, tmp->how_often_data[i]); in kill_marshal()
632 kill_unmarshal(struct kill *tmp, struct evbuffer *evbuf) in kill_unmarshal() argument
635 while (evbuffer_get_length(evbuf) > 0) { in kill_unmarshal()
636 if (evtag_peek(evbuf, &tag) == -1) in kill_unmarshal()
644 if (evtag_unmarshal_string(evbuf, KILL_WEAPON, &tmp->weapon_data) == -1) { in kill_unmarshal()
655 if (evtag_unmarshal_string(evbuf, KILL_ACTION, &tmp->action_data) == -1) { in kill_unmarshal()
669 …if (evtag_unmarshal_int(evbuf, KILL_HOW_OFTEN, &tmp->how_often_data[tmp->how_often_length]) == -1)… in kill_unmarshal()
698 evtag_unmarshal_kill(struct evbuffer *evbuf, ev_uint32_t need_tag, struct kill *msg) in evtag_unmarshal_kill() argument
705 if (evtag_unmarshal(evbuf, &tag, tmp) == -1 || tag != need_tag) in evtag_unmarshal_kill()
719 evtag_marshal_kill(struct evbuffer *evbuf, ev_uint32_t tag, const struct kill *msg) in evtag_marshal_kill() argument
724 evtag_marshal_buffer(evbuf, tag, buf_); in evtag_marshal_kill()
1059 run_marshal(struct evbuffer *evbuf, const struct run *tmp){ in run_marshal() argument
1060 evtag_marshal_string(evbuf, RUN_HOW, tmp->how_data); in run_marshal()
1062 evtag_marshal(evbuf, RUN_SOME_BYTES, tmp->some_bytes_data, tmp->some_bytes_length); in run_marshal()
1064 evtag_marshal(evbuf, RUN_FIXED_BYTES, tmp->fixed_bytes_data, (24)); in run_marshal()
1069 evtag_marshal_string(evbuf, RUN_NOTES, tmp->notes_data[i]); in run_marshal()
1074 evtag_marshal_int64(evbuf, RUN_LARGE_NUMBER, tmp->large_number_data); in run_marshal()
1080 evtag_marshal_int(evbuf, RUN_OTHER_NUMBERS, tmp->other_numbers_data[i]); in run_marshal()
1087 run_unmarshal(struct run *tmp, struct evbuffer *evbuf) in run_unmarshal() argument
1090 while (evbuffer_get_length(evbuf) > 0) { in run_unmarshal()
1091 if (evtag_peek(evbuf, &tag) == -1) in run_unmarshal()
1099 if (evtag_unmarshal_string(evbuf, RUN_HOW, &tmp->how_data) == -1) { in run_unmarshal()
1110 if (evtag_payload_length(evbuf, &tmp->some_bytes_length) == -1) in run_unmarshal()
1112 if (tmp->some_bytes_length > evbuffer_get_length(evbuf)) in run_unmarshal()
1116 …if (evtag_unmarshal_fixed(evbuf, RUN_SOME_BYTES, tmp->some_bytes_data, tmp->some_bytes_length) == … in run_unmarshal()
1127 if (evtag_unmarshal_fixed(evbuf, RUN_FIXED_BYTES, tmp->fixed_bytes_data, (24)) == -1) { in run_unmarshal()
1141 if (evtag_unmarshal_string(evbuf, RUN_NOTES, &tmp->notes_data[tmp->notes_length]) == -1) { in run_unmarshal()
1153 if (evtag_unmarshal_int64(evbuf, RUN_LARGE_NUMBER, &tmp->large_number_data) == -1) { in run_unmarshal()
1167 …if (evtag_unmarshal_int(evbuf, RUN_OTHER_NUMBERS, &tmp->other_numbers_data[tmp->other_numbers_leng… in run_unmarshal()
1196 evtag_unmarshal_run(struct evbuffer *evbuf, ev_uint32_t need_tag, struct run *msg) in evtag_unmarshal_run() argument
1203 if (evtag_unmarshal(evbuf, &tag, tmp) == -1 || tag != need_tag) in evtag_unmarshal_run()
1217 evtag_marshal_run(struct evbuffer *evbuf, ev_uint32_t tag, const struct run *msg) in evtag_marshal_run() argument
1222 evtag_marshal_buffer(evbuf, tag, buf_); in evtag_marshal_run()