namespace FrostFS.SDK; public readonly struct FrostFsRange(ulong offset, ulong length) : System.IEquatable { 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; } }