Skip to main content

Module binary_token

Module binary_token 

Source
Expand description

Binary token and binary object sequence parser (PLRM §3.14).

Handles bytes 128-159 in the PostScript input stream. Tags 128-131 are binary object sequences (compact arrays of typed objects); tags 132-149 are individual binary tokens.

Enums§

BinaryTokenResult
Result of parsing a binary token.

Functions§

parse_from_slice
Parse a binary token from a byte slice. Returns the result and bytes consumed (not counting the initial tag byte, which was already consumed by the tokenizer).
parse_from_stream
Parse a binary token from a file stream. The tag byte has already been read.