encodeCanonicalWireEdgeFrame()
Encodes canonical wire edge frame data.
Import
Section titled “Import”import { encodeCanonicalWireEdgeFrame } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function encodeCanonicalWireEdgeFrame(frame: CanonicalWireEdgeFrame): Uint8ArrayParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
frame | CanonicalWireEdgeFrame | Frame to encode. |
Returns
Section titled “Returns”Canonical encoded bytes.
Example
Section titled “Example”import { encodeCanonicalWireEdgeFrame } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/bridge-protobuf.ts