Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/nio/DirectNIOBuffer.java @ 1038:b71ad168fe34
rename Buffer.length() to remaining()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 22:16:11 -0600 |
parents | 80cad9086593 |
children |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/DirectNIOBuffer.java Thu Nov 03 21:54:34 2016 -0600 +++ b/src/org/eclipse/jetty/io/nio/DirectNIOBuffer.java Thu Nov 03 22:16:11 2016 -0600 @@ -121,7 +121,7 @@ byte[] array=src.array(); if (array!=null) { - return poke(index,array,src.getIndex(),src.length()); + return poke(index,array,src.getIndex(),src.remaining()); } else { @@ -136,7 +136,7 @@ _buf.position(index); int space = _buf.remaining(); - int length=src.length(); + int length=src.remaining(); if (length>space) length=space;