Class PathSet
Deserialize and Serialize the PathSet type
Inheritance
System.Object
PathSet
Implements
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class PathSet : List<Path>, ISerializedType
Constructors
| Improve this Doc View SourcePathSet(IEnumerable<Path>)
Construct a PathSet from an Array of Arrays representing paths
Declaration
public PathSet(IEnumerable<Path> collection)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Path> | collection | A PathSet or Array of Array of HopObjects |
Fields
| Improve this Doc View SourcePathSeparatorByte
PathSeparator const
Declaration
public const byte PathSeparatorByte = null
Field Value
Type | Description |
---|---|
System.Byte |
PathsetEndByte
PathsetEnd const
Declaration
public const byte PathsetEndByte = null
Field Value
Type | Description |
---|---|
System.Byte |
Methods
| Improve this Doc View SourceFromJson(JToken)
Deserialize PathSet
Declaration
public static PathSet FromJson(JToken token)
Parameters
Type | Name | Description |
---|---|---|
JToken | token | json token |
Returns
Type | Description |
---|---|
PathSet |
FromParser(BinaryParser, Nullable<Int32>)
Construct a PathSet from a BinaryParser
Declaration
public static PathSet FromParser(BinaryParser parser, int? hint = null)
Parameters
Type | Name | Description |
---|---|---|
BinaryParser | parser | A BinaryParser to read PathSet from |
System.Nullable<System.Int32> | hint |
Returns
Type | Description |
---|---|
PathSet |
ToBytes(IBytesSink)
to bytes Sink
Declaration
public void ToBytes(IBytesSink buffer)
Parameters
Type | Name | Description |
---|---|---|
IBytesSink | buffer |
ToJson()
Get the JSON representation of this PathSet
Declaration
public JToken ToJson()
Returns
Type | Description |
---|---|
JToken | Array of Array of HopObjects, representing this PathSet |