Lines Matching defs:write_pos
195 if (write_pos_beg != write_pos) {
204 if (read_pos < write_pos) {
205 read_pos = write_pos;
229 write_pos = 0;
237 private int write_pos;
243 // (write_pos == write_pos_beg) iff:
246 if (write_pos == write_pos_beg) {
259 write_pos = write_pos_beg;
263 if (write_pos + length >= buff_size) {
274 buffer[write_pos++] = b;
283 buffer[write_pos++] = (byte) (n & 0x00ff);
292 buffer[write_pos++] = (byte) ((n & 0x00ff00) >> 8);
293 buffer[write_pos++] = (byte) (n & 0x00ff);
302 buffer[write_pos++] = (byte) ((n & 0x00ff0000) >> 16);
303 buffer[write_pos++] = (byte) ((n & 0x00ff00) >> 8);
304 buffer[write_pos++] = (byte) (n & 0x00ff);
313 buffer[write_pos++] = (byte) ((n & 0x00ff000000) >> 24);
314 buffer[write_pos++] = (byte) ((n & 0x00ff0000) >> 16);
315 buffer[write_pos++] = (byte) ((n & 0x00ff00) >> 8);
316 buffer[write_pos++] = (byte) (n & 0x00ff);
325 buffer[write_pos++] = (byte) ((n & 0x00ff00000000000000L) >> 56);
326 buffer[write_pos++] = (byte) ((n & 0x00ff000000000000L) >> 48);
327 buffer[write_pos++] = (byte) ((n & 0x00ff0000000000L) >> 40);
328 buffer[write_pos++] = (byte) ((n & 0x00ff00000000L) >> 32);
329 buffer[write_pos++] = (byte) ((n & 0x00ff000000) >> 24);
330 buffer[write_pos++] = (byte) ((n & 0x00ff0000) >> 16);
331 buffer[write_pos++] = (byte) ((n & 0x00ff00) >> 8);
332 buffer[write_pos++] = (byte) (n & 0x00ff);
341 System.arraycopy(vector, 0, buffer, write_pos, vector.length);
342 write_pos += vector.length;
348 return (write_pos > write_pos_beg);
358 if (write_pos - write_pos_beg < length) {
359 res = new byte[write_pos - write_pos_beg];
361 res, 0, write_pos-write_pos_beg);
362 write_pos_beg = write_pos;
379 int len = (read_pos_end > write_pos)
381 : write_pos;
393 int len = (read_pos_end > write_pos)
395 : write_pos;
430 int len = (read_pos_end > write_pos) ? read_pos_end : write_pos;