Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/AbstractBuffer.java @ 1040:3e4949834f3e
remove Buffer.asArray()
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 03 Nov 2016 23:04:11 -0600 |
| parents | a7319f14ba1e |
| children | 35e3c864d7a7 |
comparison
equal
deleted
inserted
replaced
| 1039:a7319f14ba1e | 1040:3e4949834f3e |
|---|---|
| 58 { | 58 { |
| 59 setMarkIndex(-1); | 59 setMarkIndex(-1); |
| 60 _access = access; | 60 _access = access; |
| 61 } | 61 } |
| 62 | 62 |
| 63 public byte[] asArray() | 63 private byte[] asArray() |
| 64 { | 64 { |
| 65 byte[] bytes = new byte[remaining()]; | 65 byte[] bytes = new byte[remaining()]; |
| 66 byte[] array = array(); | 66 byte[] array = array(); |
| 67 if (array != null) | 67 if (array != null) |
| 68 System.arraycopy(array, getIndex(), bytes, 0, bytes.length); | 68 System.arraycopy(array, getIndex(), bytes, 0, bytes.length); |
