• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/libevent-2.0.20-stable/test/

Lines Matching refs:evbuf

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