comparison src/org/eclipse/jetty/io/BufferUtil.java @ 1052:4a2489f1d5fe

remove JBuffer.peek()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 00:27:16 -0700
parents 2b769da7f67d
children 87275900646e
comparison
equal deleted inserted replaced
1051:1ab2dd0a7db5 1052:4a2489f1d5fe
46 int val= 0; 46 int val= 0;
47 boolean started= false; 47 boolean started= false;
48 boolean minus= false; 48 boolean minus= false;
49 for (int i= buffer.getIndex(); i < buffer.putIndex(); i++) 49 for (int i= buffer.getIndex(); i < buffer.putIndex(); i++)
50 { 50 {
51 byte b= buffer.peek(i); 51 byte b = buffer.get(i);
52 if (b <= SPACE) 52 if (b <= SPACE)
53 { 53 {
54 if (started) 54 if (started)
55 break; 55 break;
56 } 56 }