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

CreateObjectHeader() public static method

Create a header for a Git hash
public static CreateObjectHeader ( Type objType, string dataSize ) : byte[]
objType System.Type /// Type of the object to hash ///
dataSize string /// Size of the object to hash ///
return byte[]
        public static byte[] CreateObjectHeader(Type objType, string dataSize)
        {
            return Encoding.UTF8.GetBytes (String.Format ("{0} {1}\0",
                                                          Object.TypeToString (objType),
                                                          dataSize));
        }