commit | 4751c150542ec282f6c6d58984974edec6c0a045 | [log] [tgz] |
---|---|---|
author | Jesse Wilson <jessewilson@google.com> | Mon May 03 15:27:11 2010 -0700 |
committer | Jesse Wilson <jessewilson@google.com> | Wed May 05 14:03:05 2010 -0700 |
tree | fd11f85d87afa833581a4de469fe73442db9db1d | |
parent | c03da3e87a0537b211f2300d594597d84898b8f7 [diff] |
Fixing bulk reads in ByteArray.MyInputStream This has never worked properly, but it didn't matter until recently because neither the JDK's nor early Dalvik's DataInputStream was exercising it. But in 2.0, Dalvik's DataInputStream prefers bulk reads, which exercises this code when run on-device. http://code.google.com/p/android/issues/detail?id=8115 The problem was that System.arraycopy call didn't include the start offset in the call.