ByteRange class
Inclusive-exclusive byte range [start, end) backed by BigInt.
Constructors
Properties
- end → BigInt
-
End offset (exclusive).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → BigInt
-
Length of the range in bytes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → BigInt
-
Start offset (inclusive).
final
Methods
-
intersection(
ByteRange other) → ByteRange? -
Returns the intersection between this range and
other, or null when disjoint. -
intersects(
ByteRange other) → bool -
Returns true if this range intersects with
other. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subtract(
ByteRange other) → List< ByteRange> -
Subtract
otherfrom this range, returning up to two residual ranges. -
toString(
) → String -
A string representation of this object.
inherited
-
union(
ByteRange other) → ByteRange -
Minimal union covering this and
other. Adjacent or overlapping ranges are merged; disjoint non-adjacent ranges return the covering span.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited