Add big endian 32 bit integer encoding to NB class
commitd928edf4248b67aee8507b311ae252679a05345b
authorShawn O. Pearce <spearce@spearce.org>
Wed, 2 Apr 2008 03:15:50 +0000 (1 23:15 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 05:06:38 +0000 (7 01:06 -0400)
tree9b8af94d568bdbd47c0a736fd8f371bb72e65bbb
parent33e5b339a023b66860c4b6083026f186776b9f45
Add big endian 32 bit integer encoding to NB class

Some parts of Git file formats use a simple 32 bit integer in big
endian encoding; that's why we have these decode*Int32 methods.
To write those same file formats back to disk we need to support
encoding a 32 bit value back to a byte[] as a big endian value.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/util/NB.java