Searched refs:obuf_len (Results 1 – 3 of 3) sorted by relevance
55 int obuf_len; /* how many bytes are in it */ member73 ctx->obuf_len = 0; in linebuffer_new()138 while ((foundnl || p - in > ctx->obuf_size - ctx->obuf_len) in linebuffer_write()139 && ctx->obuf_len > 0) { in linebuffer_write()140 int orig_olen = ctx->obuf_len; in linebuffer_write()142 i = ctx->obuf_size - ctx->obuf_len; in linebuffer_write()145 memcpy(&(ctx->obuf[ctx->obuf_len]), in, p - in); in linebuffer_write()146 ctx->obuf_len += p - in; in linebuffer_write()151 memcpy(&(ctx->obuf[ctx->obuf_len]), in, i); in linebuffer_write()152 ctx->obuf_len += i; in linebuffer_write()[all …]
173 i = ctx->obuf_size - (ctx->obuf_len + ctx->obuf_off); in buffer_write()176 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl); in buffer_write()177 ctx->obuf_len += inl; in buffer_write()182 if (ctx->obuf_len != 0) { in buffer_write()184 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, i); in buffer_write()188 ctx->obuf_len += i; in buffer_write()193 ctx->obuf_len); in buffer_write()203 ctx->obuf_len -= i; in buffer_write()204 if (ctx->obuf_len == 0) in buffer_write()253 ctx->obuf_len = 0; in buffer_ctrl()[all …]
111 int obuf_len; /* how many bytes are in it */ member