Skip to content

veer66/zstd-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zstd-text

Vee Satayamas vsatayamas@gmail.com

A macro for reading/writing UTF-8 text for Zstd stream

License

GPL-3

Example

(defpackage :example
  (:use :cl :zstd-text))

(in-package :example)

(with-open-zstd-utf8-file (in #P"x1.zst" :direction :input)
  (with-open-zstd-utf8-file (out #P"x2.zst" :direction :output)
    (loop for line = (read-line in nil :EOF)
          until (eq line :EOF)
          do
            (let* ((n (read-from-string line))
                   (n* (+ n 100)))
               (format out "n* = ~A~%" n*)))))

About

A macro for reading/writing UTF-8 text for Zstd stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published