Lines Matching defs:rs
39 struct read_state *rs = cb_arg;
42 if (rs->offset > rs->len)
45 if ((size_t)(n = buflen) > (rs->len - rs->offset))
46 n = rs->len - rs->offset;
51 memcpy(buf, &rs->buf[rs->offset], n);
52 rs->offset += n;
108 struct read_state rs;
115 rs.buf = testdata;
116 rs.offset = 0;
123 rs.len = et->read_len;
125 ret = tls_buffer_extend(buf, et->extend_len, read_cb, &rs);