зеркало из https://github.com/microsoft/scalar.git
18 строки
392 B
C#
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);
|
|
}
|
|
}
|
|
}
|