OpenHome.Git.Pack.ReadVersion C# (CSharp) Method

ReadVersion() static private method

static private ReadVersion ( BinaryReader aReader ) : uint
aReader System.IO.BinaryReader
return uint
        internal static uint ReadVersion(BinaryReader aReader)
        {
            uint version = aReader.ReadUInt32();

            if (version == kGitPackVersion2)
            {
                return (2);
            }

            if (version == kGitPackVersion3)
            {
                return (3);
            }

            throw (new GitException("Pack file has an incomaptible version"));
        }