diff options
author | Piotr Szarmanski | 2022-10-10 15:18:22 +0200 |
---|---|---|
committer | Piotr Szarmanski | 2022-10-10 15:18:22 +0200 |
commit | 50e39b868c93e520e6245c196802d48b53c6fc1c (patch) | |
tree | 3ca40810622853c7668eed386b519c953b527b04 /src/parallel-decoder.lisp | |
parent | 5411a7d6b4cd0197c34b8c97da75a24b71aa978d (diff) |
Add serapeum and clean up type specifiers.
Diffstat (limited to 'src/parallel-decoder.lisp')
-rw-r--r-- | src/parallel-decoder.lisp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parallel-decoder.lisp b/src/parallel-decoder.lisp index 8b4f568..7d35157 100644 --- a/src/parallel-decoder.lisp +++ b/src/parallel-decoder.lisp @@ -31,7 +31,7 @@ (setf pos (+ pos base 1)))))))) (defun mem-write-vector (vector ptr &optional (offset 0) (count (length vector))) - (declare (type (simple-array (unsigned-byte 8)) vector) + (declare (type octet-vector vector) (type fixnum offset count)) (declare (optimize ;; (speed 3) (safety 0) (space 0) (debug 3))) @@ -44,7 +44,7 @@ (defun map-over-key-references (function block) (loop for i from 0 to (1- (/ (length block) 64)) - for key-ref = (octets-to-reference-pair (subseq-shared block (* 64 i))) + for key-ref = (octets-to-reference-pair (nsubseq block (* 64 i))) until (key-reference-null? key-ref) do (funcall function key-ref i))) @@ -105,7 +105,7 @@ locally binding a special variable to some value." (write-sequence root file :end (unpad-block root)))) (t (let* ((initial-list (loop for i from 0 to (/ block-size 64) - for key-ref = (octets-to-reference-pair (subseq-shared root (* 64 i))) + for key-ref = (octets-to-reference-pair (nsubseq root (* 64 i))) until (key-reference-null? key-ref) collect key-ref)) (list (split-list-equally |