Lines Matching refs:wr_index
71 static gint sock, rd_index, wr_index, buffer_length, prebuffer_length; variable
204 if (wr_index >= rd_index) in http_used()
205 return wr_index - rd_index; in http_used()
206 return buffer_length - (rd_index - wr_index); in http_used()
211 if (rd_index > wr_index) in http_free()
212 return (rd_index - wr_index) - 1; in http_free()
213 return (buffer_length - (wr_index - rd_index)) - 1; in http_free()
650 cnt = min(http_free(), buffer_length - wr_index); in http_buffer_loop()
653 written = read(sock, buffer + wr_index, cnt); in http_buffer_loop()
666 wr_index = (wr_index + written) % buffer_length; in http_buffer_loop()
720 wr_index = 0; in flac_http_open()