Fray Electron
    Preparing search index...

    Function decodePrefix

    • Decodes and validates the fixed routing prefix at the start of a frame.

      Parameters

      • bytes: Uint8Array

        Frame bytes, possibly a view into a larger buffer.

      Returns Prefix

      Parsed routing fields.

      If the prefix is truncated, unsupported, or declares invalid lengths.