Class ByteSlice
- Namespace
- idunno.Bluesky.RichText
- Assembly
- idunno.Bluesky.dll
The start and end value for a slice to apply a facet to.
public sealed record ByteSlice : IEquatable<ByteSlice>Inheritance
Implements
Inherited Members
Constructors
ByteSlice(long, long)
Constructs a new instance of idunno.Bluesky.RichText.ByteSlice.
[JsonConstructor]
public ByteSlice(long byteStart, long byteEnd)Parameters
byteStartlong-
The byte index at which the facet starts.
byteEndlong-
The byte index at which the facet ends.
Remarks
byteStart is zero-indexed and inclusive.
byteEnd is zero-indexed and exclusive.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
byteStartorbyteEndis negative, or whenbyteEndis beforebyteStart.
ByteSlice(long, long)
Constructs a new instance of idunno.Bluesky.RichText.ByteSlice.
[JsonConstructor]
public ByteSlice(long byteStart, long byteEnd)Parameters
byteStartlong-
The byte index at which the facet starts.
byteEndlong-
The byte index at which the facet ends.
Remarks
byteStart is zero-indexed and inclusive.
byteEnd is zero-indexed and exclusive.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
byteStartorbyteEndis negative, or whenbyteEndis beforebyteStart.
ByteSlice(long, long)
Constructs a new instance of idunno.Bluesky.RichText.ByteSlice.
[JsonConstructor]
public ByteSlice(long byteStart, long byteEnd)Parameters
byteStartlong-
The byte index at which the facet starts.
byteEndlong-
The byte index at which the facet ends.
Remarks
byteStart is zero-indexed and inclusive.
byteEnd is zero-indexed and exclusive.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
byteStartorbyteEndis negative, or whenbyteEndis beforebyteStart.
Properties
ByteEnd
Gets the byte index at which the facet ends.
[JsonInclude]
[JsonRequired]
public long ByteEnd { get; init; }Property Value
Remarks
This is is zero-indexed and exclusive.
ByteEnd
Gets the byte index at which the facet ends.
[JsonInclude]
[JsonRequired]
public long ByteEnd { get; init; }Property Value
Remarks
This is is zero-indexed and exclusive.
ByteEnd
Gets the byte index at which the facet ends.
[JsonInclude]
[JsonRequired]
public long ByteEnd { get; init; }Property Value
Remarks
This is is zero-indexed and exclusive.
ByteStart
Gets the byte index at which the facet starts.
[JsonInclude]
[JsonRequired]
public long ByteStart { get; init; }Property Value
Remarks
This is is zero-indexed and inclusive.
ByteStart
Gets the byte index at which the facet starts.
[JsonInclude]
[JsonRequired]
public long ByteStart { get; init; }Property Value
Remarks
This is is zero-indexed and inclusive.
ByteStart
Gets the byte index at which the facet starts.
[JsonInclude]
[JsonRequired]
public long ByteStart { get; init; }Property Value
Remarks
This is is zero-indexed and inclusive.
Methods
<Clone>$()
public ByteSlice <Clone>$()Returns
<Clone>$()
public ByteSlice <Clone>$()Returns
<Clone>$()
public ByteSlice <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ByteSlice?)
public bool Equals(ByteSlice? other)Parameters
otherByteSlice?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ByteSlice?)
public bool Equals(ByteSlice? other)Parameters
otherByteSlice?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ByteSlice?)
public bool Equals(ByteSlice? other)Parameters
otherByteSlice?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(ByteSlice?, ByteSlice?)
public static bool operator ==(ByteSlice? left, ByteSlice? right)Parameters
Returns
operator ==(ByteSlice?, ByteSlice?)
public static bool operator ==(ByteSlice? left, ByteSlice? right)Parameters
Returns
operator ==(ByteSlice?, ByteSlice?)
public static bool operator ==(ByteSlice? left, ByteSlice? right)Parameters
Returns
operator !=(ByteSlice?, ByteSlice?)
public static bool operator !=(ByteSlice? left, ByteSlice? right)Parameters
Returns
operator !=(ByteSlice?, ByteSlice?)
public static bool operator !=(ByteSlice? left, ByteSlice? right)Parameters
Returns
operator !=(ByteSlice?, ByteSlice?)
public static bool operator !=(ByteSlice? left, ByteSlice? right)