Searched refs:write_pos (Results 1 – 4 of 4) sorted by relevance
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
D | StreamGobbler.java | 62 int space_available = buffer.length - write_pos; in run() 68 int unread_size = write_pos - read_pos; in run() 87 write_pos = unread_size; in run() 90 System.arraycopy(buff, 0, buffer, write_pos, avail); in run() 91 write_pos += avail; in run() 119 private int write_pos = 0; field in StreamGobbler 141 while (read_pos == write_pos) in read() 176 return write_pos - read_pos; in available() 221 while (read_pos == write_pos) in read() 239 int avail = write_pos - read_pos; in read()
|
/external/webrtc/src/modules/audio_processing/utility/ |
D | ring_buffer.c | 27 size_t write_pos; member 104 self->write_pos = 0; in WebRtc_InitBuffer() 190 const size_t margin = self->element_count - self->write_pos; in WebRtc_WriteBuffer() 194 memcpy(self->data + self->write_pos * self->element_size, in WebRtc_WriteBuffer() 196 self->write_pos = 0; in WebRtc_WriteBuffer() 200 memcpy(self->data + self->write_pos * self->element_size, in WebRtc_WriteBuffer() 203 self->write_pos += n; in WebRtc_WriteBuffer() 257 return self->write_pos - self->read_pos; in WebRtc_available_read() 259 return self->element_count - self->read_pos + self->write_pos; in WebRtc_available_read()
|
/external/qemu/audio/ |
D | winaudio.c | 99 int write_pos; /* position in current writable buffer */ member 247 s->write_pos = 0; in winaudio_out_init() 271 int wav_bytes = (s->write_size - s->write_pos); in winaudio_out_run() 275 uint8_t* dst = (uint8_t*)wav_buffer->lpData + s->write_pos; in winaudio_out_run() 292 s->write_pos += wav_bytes; in winaudio_out_run() 293 if (s->write_pos == s->write_size) { in winaudio_out_run() 303 s->write_pos = 0; in winaudio_out_run()
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | stream.cc | 1041 size_t count, read_pos, write_pos; in Flow() local 1067 write_pos = 0; in Flow() 1068 while (write_pos < read_pos) { in Flow() 1069 result = sink->Write(buffer + write_pos, read_pos - write_pos, in Flow() 1073 *data_len = read_pos - write_pos; in Flow() 1074 if (write_pos > 0) { in Flow() 1075 memmove(buffer, buffer + write_pos, *data_len); in Flow() 1080 write_pos += count; in Flow()
|