Class PathSet
Deserialize and Serialize the PathSet type
Implements
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class PathSet : List<Path>, ISerializedType
Constructors
| Edit this page 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
| Edit this page View SourcePathSeparatorByte
PathSeparator const
Declaration
public const byte PathSeparatorByte = 255
Field Value
| Type | Description |
|---|---|
| byte |
PathsetEndByte
PathsetEnd const
Declaration
public const byte PathsetEndByte = 0
Field Value
| Type | Description |
|---|---|
| byte |
Methods
| Edit this page View SourceFromJson(JsonNode)
Deserialize PathSet
Declaration
public static PathSet FromJson(JsonNode token)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonNode | token | json token |
Returns
| Type | Description |
|---|---|
| PathSet |
FromParser(BinaryParser, int?)
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 |
| int? | 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 JsonNode ToJson()
Returns
| Type | Description |
|---|---|
| JsonNode | Array of Array of HopObjects, representing this PathSet |