Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/JBuffer.java @ 1053:7e4b41247544
fix JBuffer.array()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 08 Nov 2016 00:32:02 -0700 |
parents | 4a2489f1d5fe |
children | 87275900646e |
comparison
equal
deleted
inserted
replaced
1052:4a2489f1d5fe | 1053:7e4b41247544 |
---|---|
32 public void limit(int i) { | 32 public void limit(int i) { |
33 bb.limit(i); | 33 bb.limit(i); |
34 } | 34 } |
35 | 35 |
36 public byte[] array() { | 36 public byte[] array() { |
37 return bb.hasArray() ? bb.array() : null; | 37 return bb.array(); |
38 } | |
39 | |
40 public boolean hasArray() { | |
41 return bb.hasArray(); | |
38 } | 42 } |
39 | 43 |
40 public JBuffer duplicate() { | 44 public JBuffer duplicate() { |
41 return new JBuffer(bb.duplicate()); | 45 return new JBuffer(bb.duplicate()); |
42 } | 46 } |