| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 package fletch; | 5 package fletch; |
| 6 | 6 |
| 7 import java.nio.ByteBuffer; | 7 import java.nio.ByteBuffer; |
| 8 import java.nio.charset.Charset; | 8 import java.nio.charset.Charset; |
| 9 | 9 |
| 10 class Reader { | 10 class Reader { |
| 11 public Reader() { } | 11 public Reader() { } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 int used = 0; | 87 int used = 0; |
| 88 for (int i = 0; i < reader.segmentCount(); i++) { | 88 for (int i = 0; i < reader.segmentCount(); i++) { |
| 89 used += reader.getSegment(i).buffer().capacity(); | 89 used += reader.getSegment(i).buffer().capacity(); |
| 90 } | 90 } |
| 91 return used; | 91 return used; |
| 92 } | 92 } |
| 93 | 93 |
| 94 protected Segment segment; | 94 protected Segment segment; |
| 95 protected int base; | 95 protected int base; |
| 96 } | 96 } |
| OLD | NEW |