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