Rename project, namespaces and class names Signed-off-by: Pavel Gross <p.gross@yadro.com>
27 lines
723 B
C#
27 lines
723 B
C#
namespace FrostFS.SDK;
|
|
|
|
public readonly struct FrostFsRange(ulong offset, ulong length) : System.IEquatable<FrostFsRange>
|
|
{
|
|
public ulong Offset { get; } = offset;
|
|
|
|
public ulong Length { get; } = length;
|
|
|
|
public override readonly bool Equals(object obj) => this == (FrostFsRange)obj;
|
|
|
|
public override readonly int GetHashCode() => $"{Offset}{Length}".GetHashCode();
|
|
|
|
public static bool operator ==(FrostFsRange left, FrostFsRange right)
|
|
{
|
|
return left.Equals(right);
|
|
}
|
|
|
|
public static bool operator !=(FrostFsRange left, FrostFsRange right)
|
|
{
|
|
return !(left == right);
|
|
}
|
|
|
|
public readonly bool Equals(FrostFsRange other)
|
|
{
|
|
return this == other;
|
|
}
|
|
}
|