Refactor PackIndex.readFully to support reading into the middle
commit299e0ac169d7534c2875cd05b6e19e71f5f0fe69
authorShawn O. Pearce <spearce@spearce.org>
Thu, 6 Mar 2008 00:31:31 +0000 (5 19:31 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 03:25:59 +0000 (6 23:25 -0400)
tree28faba28e09ef91c7999ca357ef7d149bd50b039
parent18136e5393ac4cdaf49b261690b3d9a6db3bd0ff
Refactor PackIndex.readFully to support reading into the middle

If we read part of the buffer we expected to read via one method
and then later need to finish populating the byte[] by calling
readFully we should allow readFully to start at the first index
that still requires loading.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/PackIndex.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackIndexV1.java