Git.Core.Object.ParseHeader C# (CSharp) Method

ParseHeader() protected static method

protected static ParseHeader ( byte input, int &pos, Type &type, string &length ) : bool
input byte
pos int
type System.Type
length string
return bool
        protected static bool ParseHeader(byte[] input, ref int pos, out Type type, out string length)
        {
            // FIXME: I'm getting an error if I don't asign these parameters, this is because
            // I get out the method before asigned anything to those parameters
            length = null;

            // Here I get out of the method
            if (!ParseType (input, ref pos, out type))
                return false;

            if (!ParseNoSpaceString (input, ref pos, out length))
                return false;

            // The next byte is null, so we skip it
            pos++;

            return true;
        }