Table of Contents

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

byteStart long

The byte index at which the facet starts.

byteEnd long

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 byteStart or byteEnd is negative, or when byteEnd is before byteStart.

ByteSlice(long, long)

Constructs a new instance of idunno.Bluesky.RichText.ByteSlice.

[JsonConstructor]
public ByteSlice(long byteStart, long byteEnd)

Parameters

byteStart long

The byte index at which the facet starts.

byteEnd long

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 byteStart or byteEnd is negative, or when byteEnd is before byteStart.

ByteSlice(long, long)

Constructs a new instance of idunno.Bluesky.RichText.ByteSlice.

[JsonConstructor]
public ByteSlice(long byteStart, long byteEnd)

Parameters

byteStart long

The byte index at which the facet starts.

byteEnd long

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 byteStart or byteEnd is negative, or when byteEnd is before byteStart.

Properties

ByteEnd

Gets the byte index at which the facet ends.

[JsonInclude]
[JsonRequired]
public long ByteEnd { get; init; }

Property Value

long

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

long

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

long

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

long

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

long

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

long

Remarks

This is is zero-indexed and inclusive.

Methods

<Clone>$()

public ByteSlice <Clone>$()

Returns

ByteSlice

<Clone>$()

public ByteSlice <Clone>$()

Returns

ByteSlice

<Clone>$()

public ByteSlice <Clone>$()

Returns

ByteSlice

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ByteSlice?)

public bool Equals(ByteSlice? other)

Parameters

other ByteSlice?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ByteSlice?)

public bool Equals(ByteSlice? other)

Parameters

other ByteSlice?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ByteSlice?)

public bool Equals(ByteSlice? other)

Parameters

other ByteSlice?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ByteSlice?, ByteSlice?)

public static bool operator ==(ByteSlice? left, ByteSlice? right)

Parameters

left ByteSlice?
right ByteSlice?

Returns

bool

operator ==(ByteSlice?, ByteSlice?)

public static bool operator ==(ByteSlice? left, ByteSlice? right)

Parameters

left ByteSlice?
right ByteSlice?

Returns

bool

operator ==(ByteSlice?, ByteSlice?)

public static bool operator ==(ByteSlice? left, ByteSlice? right)

Parameters

left ByteSlice?
right ByteSlice?

Returns

bool

operator !=(ByteSlice?, ByteSlice?)

public static bool operator !=(ByteSlice? left, ByteSlice? right)

Parameters

left ByteSlice?
right ByteSlice?

Returns

bool

operator !=(ByteSlice?, ByteSlice?)

public static bool operator !=(ByteSlice? left, ByteSlice? right)

Parameters

left ByteSlice?
right ByteSlice?

Returns

bool

operator !=(ByteSlice?, ByteSlice?)

public static bool operator !=(ByteSlice? left, ByteSlice? right)

Parameters

left ByteSlice?
right ByteSlice?

Returns

bool