/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
StreamGobbler.java | 68 int unread_size = write_pos - read_pos; 82 System.arraycopy(buffer, read_pos, new_buffer, 0, unread_size); 86 read_pos = 0; 118 private int read_pos = 0; field in class:StreamGobbler 141 while (read_pos == write_pos) 158 return buffer[read_pos++] & 0xff; 176 return write_pos - read_pos; 221 while (read_pos == write_pos) 239 int avail = write_pos - read_pos; 243 System.arraycopy(buffer, read_pos, b, off, avail) [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
HandshakeIODataStream.java | 92 private int read_pos; field in class:HandshakeIODataStream 99 return read_pos_end - read_pos; 109 marked_pos = read_pos; 113 marked_pos = read_pos; 118 read_pos = marked_pos; 127 System.arraycopy(buffer, read_pos, 128 buffer, marked_pos, read_pos_end - read_pos); 129 read_pos_end -= (read_pos - marked_pos); 130 read_pos = marked_pos; 140 if (read_pos == read_pos_end) [all...] |
/external/webrtc/src/modules/audio_processing/utility/ |
ring_buffer.c | 26 size_t read_pos; member in struct:__anon30500 49 const size_t margin = buf->element_count - buf->read_pos; 54 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size; 59 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size; 103 self->read_pos = 0; 222 int read_pos = (int) self->read_pos; local 231 read_pos += element_count; 232 if (read_pos > (int) self->element_count) { 234 read_pos -= (int) self->element_count [all...] |
/external/qemu/audio/ |
winaudio.c | 350 int read_pos;
member in struct:WinAudioIn 498 s->read_pos = 0;
531 int wav_bytes = (s->read_size - s->read_pos);
535 uint8_t* src = (uint8_t*)wav_buffer->lpData + s->read_pos;
544 __FUNCTION__, s->read_index, s->read_pos, s->read_size, wav_samples, wav_bytes, live,
555 s->read_pos += wav_bytes;
556 if (s->read_pos == s->read_size) {
557 s->read_pos = 0;
|
/external/chromium/third_party/libjingle/source/talk/base/ |
stream.cc | 1041 size_t count, read_pos, write_pos; local 1043 read_pos = *data_len; 1045 read_pos = 0; 1051 while (!end_of_stream && (read_pos < buffer_len)) { 1052 result = source->Read(buffer + read_pos, buffer_len - read_pos, 1058 *data_len = read_pos; 1062 read_pos += count; 1068 while (write_pos < read_pos) { 1069 result = sink->Write(buffer + write_pos, read_pos - write_pos [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
stream.cc | 1199 size_t count, read_pos, write_pos; local [all...] |