Handbook
Glossary
yenc-file ( path -- yenc )
Vocabulary
yenc
Inputs
path
a
string
Outputs
yenc
a
byte-array
Word description
Encodes a file in a single-part yEnc envelope. The trailer contains the file size and the CRC32 of the file contents.
Definition
USING:
io.encodings.binary
io.files
kernel
make
yenc.private
;
IN:
yenc
:
yenc-file
( path -- yenc )
[
[
ybegin%
]
[
binary
file-contents
yenc%
]
[
yend%
]
tri
]
B{
}
make
;