diff options
author | Piotr Szarmanski | 2022-12-30 18:29:24 +0100 |
---|---|---|
committer | Piotr Szarmanski | 2022-12-30 18:29:24 +0100 |
commit | 5afc44c1082ae7088511f318aa9bd3d4b25ba3c6 (patch) | |
tree | d4a30ac582f98b77a79a164d40f9a7e794e1c6b4 /tests/rfc.lisp | |
parent | 855e79b7ffa37ac64de51defa18104ed897576b3 (diff) |
Implement buffer reuse encoding.
This implements a buffer reuse mechanism in eris-encode. This is also a
backwards incompatible change, as the provided OUTPUT-FUNCTION now has an
additional argument and has to return an octet-vector buffer of equal size. This
is not yet implemented optimally, but should amount to a reduce of memory usage
and GC required, especially for larger files.
Diffstat (limited to 'tests/rfc.lisp')
-rw-r--r-- | tests/rfc.lisp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rfc.lisp b/tests/rfc.lisp index 15b993e..dafa086 100644 --- a/tests/rfc.lisp +++ b/tests/rfc.lisp @@ -24,7 +24,8 @@ (defun test-output (block ref) (assert (equalp block - (base32-to-bytes-unpadded (getf *alist* (intern (bytes-to-base32-unpadded ref) :keyword)))))) + (base32-to-bytes-unpadded (getf *alist* (intern (bytes-to-base32-unpadded ref) :keyword))))) + block) (defmacro positive-test (urn content block-alist secret block-size) `(let ((*alist* ,block-alist) |