Lines Matching refs:outbuffer_cur
56 vt->outbuffer_cur = 0;
115 if(len > vt->outbuffer_len - vt->outbuffer_cur) {
117 len = vt->outbuffer_len - vt->outbuffer_cur;
120 memcpy(vt->outbuffer + vt->outbuffer_cur, bytes, len);
121 vt->outbuffer_cur += len;
126 return vt->outbuffer_cur >= vt->outbuffer_len - 1;
136 int written = vsnprintf(vt->outbuffer + vt->outbuffer_cur,
137 vt->outbuffer_len - vt->outbuffer_cur,
140 if(written == vt->outbuffer_len - vt->outbuffer_cur) {
142 vt->outbuffer_cur = vt->outbuffer_len - 1;
145 vt->outbuffer_cur += written;
158 size_t orig_cur = vt->outbuffer_cur;
171 vt->outbuffer_cur = orig_cur;
176 size_t orig_cur = vt->outbuffer_cur;
191 vt->outbuffer_cur = orig_cur;
201 return vt->outbuffer_cur;
206 return vt->outbuffer_len - vt->outbuffer_cur;
211 if(len > vt->outbuffer_cur)
212 len = vt->outbuffer_cur;
216 if(len < vt->outbuffer_cur)
217 memmove(vt->outbuffer, vt->outbuffer + len, vt->outbuffer_cur - len);
219 vt->outbuffer_cur -= len;