Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the trivial-yenc Reference Manual, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 15:22:20 2020 GMT+0.
• Introduction | What trivial-yenc is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
Common lisp tools for decoding yenc files. It uses split-sequence.
(ql:quickload :trivial-yenc)
(trivial-yenc:decode-part instream directory) => part number or nil
instream is a binary input stream (:element-type '(unsigned-byte 8))
directory is a path prefix for the output file
See examples test1 and test2.
test1 opens a yenc file (two roads), decodes and displays the poem from the file.
test2 decodes a multi-part binary, joystick.jpg.
(defun test2 ()
"decode multipart messages to create joystick.jpg"
(with-open-file (in (asdf:system-relative-pathname 'trivial-yenc "test/yenc2/00000020.ntx" )
:element-type '(unsigned-byte 8))
(decode-part in (asdf:system-relative-pathname 'trivial-yenc "test/yenc2/")))
(with-open-file (in (asdf:system-relative-pathname 'trivial-yenc "test/yenc2/00000021.ntx" )
:element-type '(unsigned-byte 8))
(decode-part in (asdf:system-relative-pathname 'trivial-yenc "test/yenc2/"))) )
decode-part skips message headers, parses =ybegin line. If it's a multipart, it parses the next =ypart line. With enough information, it yydecodes the data that follows and writes it to a file in the directory specified. (test2) reads yenc files, but in real life you can stream the data right from the newsserver...
See:
Todo:
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The trivial-yenc system |
Stacksmith <fpgasm@apple2.x10.mx>
MIT
Decode yenc file to a binary file
split-sequence
trivial-yenc.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The trivial-yenc.asd file | ||
• The trivial-yenc/package.lisp file | ||
• The trivial-yenc/trivial-yenc.lisp file |
Next: The trivial-yenc/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
trivial-yenc.asd
trivial-yenc (system)
Next: The trivial-yenc/trivial-yenc․lisp file, Previous: The trivial-yenc․asd file, Up: Lisp files [Contents][Index]
trivial-yenc (system)
package.lisp
Previous: The trivial-yenc/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
trivial-yenc (system)
trivial-yenc.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The trivial-yenc package |
package.lisp (file)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
decode stream in and write file in path directory. Return part number or nil
trivial-yenc.lisp (file)
decode two-roads.yenc into two-roads.out; load the output file and print to screen.
trivial-yenc.lisp (file)
decode a multi-part binary from two files.
trivial-yenc.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal functions |
Next: Internal functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
trivial-yenc.lisp (file)
Previous: Internal special variables, Up: Internal definitions [Contents][Index]
convert vector of bytes to a string
trivial-yenc.lisp (file)
convert vector of bytes to a string
trivial-yenc.lisp (file)
decode bytes in vec into out stream
trivial-yenc.lisp (file)
decode a line of encoded data from in and output to out
trivial-yenc.lisp (file)
trivial-yenc.lisp (file)
parse a simple header consisting of pure name=value pairs
trivial-yenc.lisp (file)
trivial-yenc.lisp (file)
read a parameter line starting with =ybegin; return an alist.
trivial-yenc.lisp (file)
trivial-yenc.lisp (file)
trivial-yenc.lisp (file)
convert string x=y to (x . y), converting y to a number if possible
trivial-yenc.lisp (file)
trivial-yenc.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L T |
---|
Jump to: | F L T |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | B D F H P R T |
---|
Jump to: | B D F H P R T |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | =
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
= | |||
=yend : | Internal special variables | ||
| |||
S | |||
Special Variable, =yend : | Internal special variables | ||
|
Jump to: | =
S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | P S T |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
P | |||
Package, trivial-yenc : | The trivial-yenc package | ||
| |||
S | |||
System, trivial-yenc : | The trivial-yenc system | ||
| |||
T | |||
trivial-yenc : | The trivial-yenc system | ||
trivial-yenc : | The trivial-yenc package | ||
|
Jump to: | P S T |
---|