Searched refs:obuf_len (Results 1 – 4 of 4) sorted by relevance
102 int obuf_len; /* how many bytes are in it */ member114 ctx->obuf_len=0; in linebuffer_new()175 while ((foundnl || p - in > ctx->obuf_size - ctx->obuf_len) in linebuffer_write()176 && ctx->obuf_len > 0) in linebuffer_write()178 int orig_olen = ctx->obuf_len; in linebuffer_write()180 i = ctx->obuf_size - ctx->obuf_len; in linebuffer_write()185 memcpy(&(ctx->obuf[ctx->obuf_len]), in linebuffer_write()187 ctx->obuf_len += p - in; in linebuffer_write()194 memcpy(&(ctx->obuf[ctx->obuf_len]), in linebuffer_write()196 ctx->obuf_len += i; in linebuffer_write()[all …]
107 ctx->obuf_len=0; in buffer_new()208 i=ctx->obuf_size-(ctx->obuf_len+ctx->obuf_off); in buffer_write()212 memcpy(&(ctx->obuf[ctx->obuf_off+ctx->obuf_len]),in,inl); in buffer_write()213 ctx->obuf_len+=inl; in buffer_write()218 if (ctx->obuf_len != 0) in buffer_write()222 memcpy(&(ctx->obuf[ctx->obuf_off+ctx->obuf_len]),in,i); in buffer_write()226 ctx->obuf_len+=i; in buffer_write()232 ctx->obuf_len); in buffer_write()241 ctx->obuf_len-=i; in buffer_write()242 if (ctx->obuf_len == 0) break; in buffer_write()[all …]
354 int obuf_len; /* how many bytes are in it */ member