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