Common Lisp Package: NETSTRINGS

README:

FUNCTION

Public

READ-NETSTRING (STREAM &OPTIONAL (ENCODING UTF-8))

Reads a netstring from STREAM. STREAM must be a binary input stream that has an element type (UNSIGNED-BYTE 8). After reading, the sequence of bytes is converted to an ordinary lisp string using ENCODING (see the documentation of ARNESI:OCTETS-TO-STRING for a list of available encodings).

WRITE-NETSTRING (STRING STREAM &OPTIONAL (ENCODING UTF-8))

Writes a STRING to STREAM as a netstring. STREAM must be a binary output stream that has an element type (UNSIGNED-BYTE 8). The string is converted to a sequence of bytes using ENCODING and then written to the stream. See the documentation of ARNESI:OCTETS-TO-STRING for a list of available encodings.

Private

DIGITIZE (BYTE)

Converts a BYTE representing an ASCII decimal digit to that digit's numeric value.

DIGITP (BYTE)

Checks whether BYTE represents a decimal digit in ASCII.

CONSTANT

Private

Undocumented

+COLON+

+COMMA+