scalar/Scalar.Common/Git/GitOid.cs

18 строки
392 B
C#

using System.Runtime.InteropServices;
namespace Scalar.Common.Git
{
[StructLayout(LayoutKind.Sequential)]
public struct GitOid
{
// OIDs are 20 bytes long
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] Id;
public override string ToString()
{
return SHA1Util.HexStringFromBytes(this.Id);
}
}
}