Searched refs:write_pos (Results 1 – 6 of 6) sorted by relevance
/external/sl4a/Utils/src/com/trilead/ssh2/ |
D | StreamGobbler.java | 60 int avail = is.read(buffer, write_pos, buffer.length - write_pos); in run() 68 write_pos += avail; in run() 70 int space_available = buffer.length - write_pos; in run() 77 write_pos -= read_pos; in run() 80 write_pos = 0; in run() 112 private int write_pos = 0; field in StreamGobbler 149 while (read_pos == write_pos) { in read() 177 return write_pos - read_pos; in available() 218 while (read_pos == write_pos) { in read() 233 int avail = write_pos - read_pos; in read()
|
/external/webrtc/webrtc/common_audio/ |
D | ring_buffer.c | 27 size_t write_pos; member 95 self->write_pos = 0; in WebRtc_InitBuffer() 173 const size_t margin = self->element_count - self->write_pos; in WebRtc_WriteBuffer() 177 memcpy(self->data + self->write_pos * self->element_size, in WebRtc_WriteBuffer() 179 self->write_pos = 0; in WebRtc_WriteBuffer() 183 memcpy(self->data + self->write_pos * self->element_size, in WebRtc_WriteBuffer() 186 self->write_pos += n; in WebRtc_WriteBuffer() 235 return self->write_pos - self->read_pos; in WebRtc_available_read() 237 return self->element_count - self->read_pos + self->write_pos; in WebRtc_available_read()
|
/external/python/cpython2/Modules/_io/ |
D | bufferedio.c | 219 Py_off_t write_pos; member 1660 self->write_pos = 0; in _bufferedwriter_reset_buf() 1760 if (!VALID_WRITE_BUFFER(self) || self->write_pos == self->write_end) in _bufferedwriter_flush_unlocked() 1763 rewind = RAW_OFFSET(self) + (self->pos - self->write_pos); in _bufferedwriter_flush_unlocked() 1771 while (self->write_pos < self->write_end) { in _bufferedwriter_flush_unlocked() 1773 self->buffer + self->write_pos, in _bufferedwriter_flush_unlocked() 1774 Py_SAFE_DOWNCAST(self->write_end - self->write_pos, in _bufferedwriter_flush_unlocked() 1784 self->write_pos += n; in _bufferedwriter_flush_unlocked() 1785 self->raw_pos = self->write_pos; in _bufferedwriter_flush_unlocked() 1835 if (!VALID_WRITE_BUFFER(self) || self->write_pos > self->pos) { in bufferedwriter_write() [all …]
|
/external/webrtc/webrtc/base/ |
D | stream.cc | 1073 size_t count, read_pos, write_pos; in Flow() local 1099 write_pos = 0; in Flow() 1100 while (write_pos < read_pos) { in Flow() 1101 result = sink->Write(buffer + write_pos, read_pos - write_pos, in Flow() 1105 *data_len = read_pos - write_pos; in Flow() 1106 if (write_pos > 0) { in Flow() 1107 memmove(buffer, buffer + write_pos, *data_len); in Flow() 1112 write_pos += count; in Flow()
|
/external/libopus/src/ |
D | analysis.c | 164 curr_lookahead = tonal->write_pos-tonal->read_pos; in tonality_get_info() 168 if (len > 480 && pos != tonal->write_pos) in tonality_get_info() 174 if (pos == tonal->write_pos) in tonality_get_info() 258 info = &tonal->info[tonal->write_pos++]; in tonality_analysis() 259 if (tonal->write_pos>=DETECT_SIZE) in tonality_analysis() 260 tonal->write_pos-=DETECT_SIZE; in tonality_analysis()
|
D | analysis.h | 77 int write_pos; member
|