<PackageReference Include="Azure.Core" Version="1.42.0" />

HttpRange

public struct HttpRange : IEquatable<HttpRange>
Defines a range of bytes within an HTTP resource, starting at an offset and ending at offset+count-1 inclusively.
public long? Length { get; }

Gets the size of the HttpRange. null means the range extends all the way to the end.

public long Offset { get; }

Gets the starting offset of the HttpRange.

public HttpRange(long offset = 0, long? length = default)

Creates an instance of HttpRange.

public static bool op_Equality(HttpRange left, HttpRange right)

Check if two HttpRange instances are equal.

public static bool op_Inequality(HttpRange left, HttpRange right)

Check if two HttpRange instances are not equal.

public bool Equals(HttpRange other)

Check if two HttpRange instances are equal.