Class Hash256
Hash with a width of 256 bits
Inherited Members
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class Hash256 : Hash, ISerializedType
Constructors
| Improve this Doc View SourceHash256(Byte[])
Defines how to construct Hash from buffer
Declaration
public Hash256(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | bytes buffer |
Fields
| Improve this Doc View SourceZero
Declaration
public static readonly Hash256 Zero
Field Value
Type | Description |
---|---|
Hash256 |
Methods
| Improve this Doc View SourceFromHex(String)
create instance from hex string
Declaration
public static Hash256 FromHex(string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | string hex token |
Returns
Type | Description |
---|---|
Hash256 |
FromJson(JToken)
create instance from json object
Declaration
public static Hash256 FromJson(JToken token)
Parameters
Type | Name | Description |
---|---|---|
JToken | token | json object |
Returns
Type | Description |
---|---|
Hash256 |
FromParser(BinaryParser, Nullable<Int32>)
create instance from binary parser
Declaration
public static Hash256 FromParser(BinaryParser parser, int? hint = null)
Parameters
Type | Name | Description |
---|---|---|
BinaryParser | parser | parser |
System.Nullable<System.Int32> | hint |
Returns
Type | Description |
---|---|
Hash256 |
Nibblet(Int32)
Declaration
public int Nibblet(int depth)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | depth |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
IEquatable<>