@dxos/echo
    Preparing search index...

    Function externalData

    • Creates an external BlobData variant that references bytes held by a registered backend.

      Parameters

      • uri: string

        Backend-scoped URI, e.g. as returned by a BlobBackend.put call.

      Returns
          | { _tag: "inline"; bytes: Uint8Array<ArrayBufferLike> }
          | { _tag: "external"; uri: string }

      • { _tag: "inline"; bytes: Uint8Array<ArrayBufferLike> }
      • { _tag: "external"; uri: string }
        • Readonly_tag: "external"
        • Readonlyuri: string

          URI locating the bytes. The scheme selects the backend at read time (e.g. ni:///sha-256;… for the edge backend — an RFC 6920 content digest, not a backend name — or wnfs://… for the plugin-wnfs extension), resolved via the scheme→backend map built from registerBlobBackend calls. Core code never parses or constructs backend-specific URIs beyond reading the scheme.

          RFC 6920 for the ni: URI format.

      O(1).