DriftTexture · function
ensurePageDecoded
Decode a held page if the mode says the cache owns that, and it has not been done.
Explained in DriftTexture.
function ensurePageDecoded(cache: PageCache, hash: string): booleanimport { ensurePageDecoded } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
cache | PageCache | |
hash | string |
In depth
Returns whether the page's bytes are now the decoded ones. false in per-sample mode is the
ordinary answer rather than a failure: the bytes are the compressed page and whoever samples
decodes them.