comparison src/org/eclipse/jetty/io/AbstractBuffer.java @ 1042:a62193321d6a

remove Buffer.reset()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 04 Nov 2016 01:03:25 -0600
parents 35e3c864d7a7
children ae1c92957739
comparison
equal deleted inserted replaced
1041:35e3c864d7a7 1042:a62193321d6a
347 public final int putIndex() 347 public final int putIndex()
348 { 348 {
349 return _put; 349 return _put;
350 } 350 }
351 351
352 public void reset()
353 {
354 if (markIndex() >= 0) setGetIndex(markIndex());
355 }
356
357 public void rewind() 352 public void rewind()
358 { 353 {
359 setGetIndex(0); 354 setGetIndex(0);
360 setMarkIndex(-1); 355 setMarkIndex(-1);
361 } 356 }