comparison src/org/eclipse/jetty/http/HttpParser.java @ 1050:5ef954fad97b

remove JBuffer.sliceFrom()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 07 Nov 2016 23:49:41 -0700
parents 2b769da7f67d
children 1ab2dd0a7db5
comparison
equal deleted inserted replaced
1049:4afdf0f0c5bc 1050:5ef954fad97b
88 private void mark() { 88 private void mark() {
89 _mark = _buffer.getIndex() - 1; 89 _mark = _buffer.getIndex() - 1;
90 } 90 }
91 91
92 private JBuffer sliceFromMark() { 92 private JBuffer sliceFromMark() {
93 JBuffer buf = _buffer.sliceFrom(_mark); 93 JBuffer buf = _buffer.duplicate();
94 buf.position(_mark);
95 buf.limit(_buffer.position()-1);
94 _mark = -1; 96 _mark = -1;
95 return buf; 97 return buf;
96 } 98 }
97 99
98 private void clear() { 100 private void clear() {