Resource ceilings and pinned-font constraints for one WOFF2 decode.
| Class Members |
|
size_t |
expectedOutputSize = 0 |
|
|
size_t |
maximumBrotliMemory = 0 |
Zero preserves generic decoder allocation behavior. Nonzero bounds all live Brotli allocations for this decode, including state, buffers and aligned accounting headers. |
|
size_t |
maximumInputSize = 16 * 1024 * 1024 |
Encoded WOFF2 input bytes. |
|
size_t |
maximumIntermediateSize = 16 * 1024 * 1024 |
Intermediate decode storage bytes. |
|
size_t |
maximumOutputSize = 64 * 1024 * 1024 |
Reconstructed sfnt output bytes. |
|
size_t |
maximumTableCount = 4096 |
Accepted sfnt table records. Nonzero for a build-pinned font whose exact reconstructed length is known. Uses one fixed output vector instead of a growing string followed by a copy; header and result must match. |
|
size_t |
maximumTransformedGlyfSize = 4 * 1024 * 1024 |
Transformed glyf table bytes. |
|
bool |
requireTrueTypeOutlines = false |
Restrict a pinned TrueType-only catalog without weakening generic full-text format support. |