Write the pack header in one shot
commitc1ca08ef4efd6f03646ceb18dfc67af79289bf10
authorShawn O. Pearce <spearce@spearce.org>
Thu, 26 Mar 2009 01:21:54 +0000 (25 18:21 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 26 Mar 2009 21:06:22 +0000 (26 22:06 +0100)
treea140b439c82c966884d6134dbe80389046691293
parentfea0546e61dd90f2117c70230d51ba64c07e2ef1
Write the pack header in one shot

Instead of making 3 individual write calls of 4 bytes each, write
the entire header as a single 12 byte buffer.  Its also a little
bit easier to follow the final code, that these items appear at
the 0/4/8 offsets within the 12 byte long header.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java