projects
/
nestedvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
de-eclipseify
[nestedvm.git]
/
src
/
org
/
ibex
/
nestedvm
/
util
/
Seekable.java
diff --git
a/src/org/ibex/nestedvm/util/Seekable.java
b/src/org/ibex/nestedvm/util/Seekable.java
index
2e48a7d
..
cf8cca7
100644
(file)
--- a/
src/org/ibex/nestedvm/util/Seekable.java
+++ b/
src/org/ibex/nestedvm/util/Seekable.java
@@
-19,10
+19,10
@@
public abstract class Seekable {
public int tryReadFully(byte[] buf, int off, int len) throws IOException {
int total = 0;
while(len > 0) {
public int tryReadFully(byte[] buf, int off, int len) throws IOException {
int total = 0;
while(len > 0) {
- int n = read(buf,off,len);
- if(n == -1) break;
- off += n;
- len -= n;
+ int n = read(buf,off,len);
+ if(n == -1) break;
+ off += n;
+ len -= n;
total += n;
}
return total == 0 ? -1 : total;
total += n;
}
return total == 0 ? -1 : total;