Go to the first, previous, next, last section, table of contents.


|readTokenChars

Function: |readTokenChars { [messageStream start stop] -> [chars] }
file: job.t
package: muf
status: alpha

The |readTokenChars function reads a sequence of characters from the given messageStream's token log. The start parameter specifies the byte offset of the first char to read, and the stop parameter specifies the byte offset of the first char not to read.

The intended uses are to read the chars in a token immediately after locating it via a function like |scanTokenToWhitespace, or to read the source for an entire function.

Token logs are currently circular queues a fixed 16K chars in length, so tokens or functions longer than this cannot be read this way.


Go to the first, previous, next, last section, table of contents.