Struct BigSize
- Namespace
- NLightning.Domain.Protocol.ValueObjects
- Assembly
- NLightning.Domain.dll
Represents a variable length integer.
public readonly record struct BigSize : IValueObject, IComparable, IEquatable<BigSize>
- Implements
- Inherited Members
Remarks
Initializes a new instance of the BigSize struct.
Constructors
BigSize(ulong)
Represents a variable length integer.
public BigSize(ulong Value)
Parameters
Valueulong
Remarks
Initializes a new instance of the BigSize struct.
Properties
Value
public ulong Value { get; init; }
Property Value
Methods
CompareTo(object?)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(object? obj)
Parameters
objobjectAn object to compare with this instance.
Returns
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes objin the sort order.Zero This instance occurs in the same position in the sort order as obj.Greater than zero This instance follows objin the sort order.
Exceptions
- ArgumentException
objis not the same type as this instance.
Operators
operator >(BigSize, BigSize)
public static bool operator >(BigSize left, BigSize right)
Parameters
Returns
operator >=(BigSize, BigSize)
public static bool operator >=(BigSize left, BigSize right)
Parameters
Returns
implicit operator byte(BigSize)
public static implicit operator byte(BigSize bigSize)
Parameters
bigSizeBigSize
Returns
implicit operator short(BigSize)
public static implicit operator short(BigSize bigSize)
Parameters
bigSizeBigSize
Returns
implicit operator int(BigSize)
public static implicit operator int(BigSize bigSize)
Parameters
bigSizeBigSize
Returns
implicit operator long(BigSize)
public static implicit operator long(BigSize bigSize)
Parameters
bigSizeBigSize
Returns
implicit operator ushort(BigSize)
public static implicit operator ushort(BigSize bigSize)
Parameters
bigSizeBigSize
Returns
implicit operator uint(BigSize)
public static implicit operator uint(BigSize bigSize)
Parameters
bigSizeBigSize
Returns
implicit operator ulong(BigSize)
public static implicit operator ulong(BigSize bigSize)
Parameters
bigSizeBigSize
Returns
implicit operator BigSize(byte)
public static implicit operator BigSize(byte value)
Parameters
valuebyte
Returns
implicit operator BigSize(short)
public static implicit operator BigSize(short value)
Parameters
valueshort
Returns
implicit operator BigSize(int)
public static implicit operator BigSize(int value)
Parameters
valueint
Returns
implicit operator BigSize(long)
public static implicit operator BigSize(long value)
Parameters
valuelong
Returns
implicit operator BigSize(ushort)
public static implicit operator BigSize(ushort value)
Parameters
valueushort
Returns
implicit operator BigSize(uint)
public static implicit operator BigSize(uint value)
Parameters
valueuint
Returns
implicit operator BigSize(ulong)
public static implicit operator BigSize(ulong value)
Parameters
valueulong
Returns
operator <(BigSize, BigSize)
public static bool operator <(BigSize left, BigSize right)
Parameters
Returns
operator <=(BigSize, BigSize)
public static bool operator <=(BigSize left, BigSize right)