Lines Matching defs:current
209 private static ByteBuffer safeAdd(ByteBuffer current, byte b) {
211 return safeAdd(current, bytes);
214 private static ByteBuffer safeAdd(ByteBuffer current, byte[] bytes) {
215 if (current.remaining() < bytes.length) {
216 ByteBuffer newBuffer = ByteBuffer.allocate((current.capacity()
219 newBuffer.put(current.array(), 0, current.position());
220 current = newBuffer;
222 current.put(bytes);
223 return current;