Struct Nibbles
Assembly: Libplanet.Store.dll
Syntax
public readonly struct Nibbles : IEquatable<Nibbles>
Fields
|
Improve this Doc
View Source
Empty
Declaration
public static readonly Nibbles Empty
Field Value
Properties
|
Improve this Doc
View Source
ByteArray
A list of langword_csharp_bytes representing raw nibbles where each nibble
is assigned to a langword_csharp_byte.
Declaration
[Pure]
public readonly ImmutableArray<byte> ByteArray { get; }
Property Value
|
Improve this Doc
View Source
Hex
The hex representation of the Nibbles. Unlike most other
hex representations, returned langword_csharp_string is of the same length as
ByteArray and can be of odd length.
Declaration
[Pure]
public readonly string Hex { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Declaration
public readonly byte this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
Length
Declaration
[Pure]
public readonly int Length { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(Byte)
Declaration
public readonly Nibbles Add(byte b)
Parameters
Type |
Name |
Description |
Byte |
b |
|
Returns
|
Improve this Doc
View Source
AddRange(in Nibbles)
Declaration
public readonly Nibbles AddRange(in Nibbles nibbles)
Parameters
Type |
Name |
Description |
Nibbles |
nibbles |
|
Returns
|
Improve this Doc
View Source
AddRange(in ImmutableArray<Byte>)
Declaration
public readonly Nibbles AddRange(in ImmutableArray<byte> nibbles)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Nibbles)
Declaration
public readonly bool Equals(Nibbles other)
Parameters
Type |
Name |
Description |
Nibbles |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
FromHex(String)
Declaration
public static Nibbles FromHex(string hex)
Parameters
Type |
Name |
Description |
String |
hex |
|
Returns
|
Improve this Doc
View Source
FromKeyBytes(in KeyBytes)
Declaration
public static Nibbles FromKeyBytes(in KeyBytes keyBytes)
Parameters
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Skip(Int32)
Declaration
public readonly Nibbles Skip(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Returns
|
Improve this Doc
View Source
Take(Int32)
Declaration
public readonly Nibbles Take(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Returns
|
Improve this Doc
View Source
ToKeyBytes()
Gets a KeyBytes representing compressed nibbles where
each pair of nibbles is compacted into a langword_csharp_byte.
Declaration
[Pure]
public readonly KeyBytes ToKeyBytes()
Returns
Exceptions
|
Improve this Doc
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Overrides
Implements