Reads the text of a frame. Surrounding whitespace is trimmed, the prefix selects the kind (UNSUPPORTED_FORMAT when
none matches), and from there everything is MALFORMED when wrong: a length above LIMITS.qrMaxChars (checked before
any decoding), a missing terminator, a character outside base45, DEFLATE data that is invalid or inflates beyond
LIMITS.frameMaxBytes, and a container whose tokens, lengths, count or types do not fit the kind. The container is
read to its last byte; bytes after the end of the DEFLATE stream itself are not reported by the decompressor and are
ignored, which cannot change the tokens, and every token is checked by its own signature.
Reads the text of a frame. Surrounding whitespace is trimmed, the prefix selects the kind (UNSUPPORTED_FORMAT when none matches), and from there everything is MALFORMED when wrong: a length above
LIMITS.qrMaxChars(checked before any decoding), a missing terminator, a character outside base45, DEFLATE data that is invalid or inflates beyondLIMITS.frameMaxBytes, and a container whose tokens, lengths, count or types do not fit the kind. The container is read to its last byte; bytes after the end of the DEFLATE stream itself are not reported by the decompressor and are ignored, which cannot change the tokens, and every token is checked by its own signature.