Fray Electron
    Preparing search index...

    Function buildFrame

    • Encodes routing prefix, protobuf header, and payload into one wire frame.

      Parameters

      • prefix: PrefixFields

        Routing identities, operation, and category.

      • header: HeaderFields

        Validated protocol header fields.

      • payload: Uint8Array = ...

        Optional body bytes.

      Returns Uint8Array

      Newly allocated frame bytes.

      If the UID or header is invalid or the frame exceeds the protocol size limit.