Most encoded objects consist of a type code followed by the object value and an end code; the exception is encoded strings that are prefixed with their length. To simplify the parser, the tokenize function returns strings as two “virtual” tokens; a type code followed by the string value. Some examples: