Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: tools/servicec/lib/src/resources/java/dartino/Reader.java

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dartino 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 dartino;
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() { }
12 12
13 public Reader(byte[] memory, int offset) { 13 public Reader(byte[] memory, int offset) {
14 segment = new Segment(memory); 14 segment = new Segment(memory);
15 base = offset; 15 base = offset;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698