ReferenceFunctions
encodePath()
function encodePath(path): object;Defined in: packages/protocol/src/path.ts:49
Encode a route into its pathLen byte and hop bytes; null encodes as unknown.
Parameters
path
Path | null
Path bytes, or null for flood
Returns
object
bytes
bytes: Uint8Array;pathLen
pathLen: number;