rullino
    Preparing search index...

    Function fetchModel

    • The bytes of a model file, from the cache if present, else downloaded (and then cached). A ModelFile is verified (size and SHA-256) before it is cached and before it is returned; a corrupt cache entry is dropped and downloaded again. A bare URL is only checked against the server's Content-Length (truncation).

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>