comparison src/org/eclipse/jetty/io/JBuffer.java @ 1071:b4ba8a4d5a16

remove JBuffer.space()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 10 Nov 2016 02:13:28 -0700
parents bbbda7c6e8ec
children 00704b28b9f1
comparison
equal deleted inserted replaced
1070:a44fc6b53757 1071:b4ba8a4d5a16
83 83
84 public void clear() { 84 public void clear() {
85 bb.clear(); 85 bb.clear();
86 } 86 }
87 87
88 public void clearJ() {
89 bb.position(0);
90 bb.limit(0);
91 }
92
93 public int space() {
94 return bb.capacity() - bb.limit();
95 }
96
97 88
98 public void get(byte[] b, int offset, int length) { 89 public void get(byte[] b, int offset, int length) {
99 bb.get(b,offset,length); 90 bb.get(b,offset,length);
100 } 91 }
101 92