Home | History | Annotate | Download | only in libevent

Lines Matching full:s_length

781                  '  msg->%s_length = len;' % name,
797 ' *plen = msg->%s_length;' % name,
803 code = ['if (evtag_payload_length(%s, &%s->%s_length) == -1)' % (
807 'if (%s->%s_length > EVBUFFER_LENGTH(%s))' % (
810 'if ((%s->%s_data = malloc(%s->%s_length)) == NULL)' % (
814 '%s->%s_length) == -1) {' % (
824 code = ['evtag_marshal(%s, %s, %s->%s_data, %s->%s_length);' % (
832 ' %s->%s_length = 0;' % (structname, self.Name()),
841 '%s->%s_length = 0;' % (name, self._name) ]
852 'ev_uint32_t %s_length;' % self._name]
889 if (!msg->%(name)s_set || offset < 0 || offset >= msg->%(name)s_length)
903 if (!msg->%(name)s_set || off < 0 || off >= msg->%(name)s_length)
931 if (++msg->%(name)s_length >= msg->%(name)s_num_allocated) {
942 msg->%(name)s_data[msg->%(name)s_length - 1] = %(refname)s_new();
943 if (msg->%(name)s_data[msg->%(name)s_length - 1] == NULL)
946 return (msg->%(name)s_data[msg->%(name)s_length - 1]);
948 --msg->%(name)s_length;
965 for (i = 0; i < %(structname)s->%(name)s_length; ++i) {
982 %(var_name)s->%(name)s_data[%(var_name)s->%(name)s_length - 1]) == -1) {
983 s_length;
993 ' for (i = 0; i < %s->%s_length; ++i) {' % (
1005 ' for (i = 0; i < %s->%s_length; ++i) {' % (
1013 ' %s->%s_length = 0;' % (structname, self.Name()),
1022 '%s->%s_length = 0;' % (name, self._name),
1029 ' for (i = 0; i < %s->%s_length; ++i) {' % (
1037 ' %s->%s_length = 0;' % (name, self._name),
1046 'int %s_length;' % self._name,