DriftTexture · type

PageDecode

How a page's bytes are produced. Supplied by the caller: a cache cannot know a format.

Explained in DriftTexture.

type PageDecode = (hash: string, into: Uint8Array) => void
import type { PageDecode } from '@driftengine/texture';