Limited disclosing of byte-vectors to the first 16 elements.
This commit is contained in:
parent
958d62febe
commit
bd70ccb03d
|
@ -48,12 +48,14 @@
|
||||||
|
|
||||||
(define-method &disclose ((obj :code-vector))
|
(define-method &disclose ((obj :code-vector))
|
||||||
; (list 'byte-vector (code-vector-length obj))
|
; (list 'byte-vector (code-vector-length obj))
|
||||||
(cons 'byte-vector
|
(let ((z (code-vector-length obj)))
|
||||||
(let ((z (code-vector-length obj)))
|
(cons 'byte-vector
|
||||||
(do ((i (- z 1) (- i 1))
|
(cons (list 'length z)
|
||||||
(l '() (cons (code-vector-ref obj i) l)))
|
(do ((i (min (- z 1) 15) (- i 1))
|
||||||
((< i 0) l))))
|
(l '() (cons (code-vector-ref obj i) l)))
|
||||||
)
|
((< i 0) (if (> z 16)
|
||||||
|
(append l (list '...))
|
||||||
|
l)))))))
|
||||||
|
|
||||||
(define-method &disclose ((obj :channel))
|
(define-method &disclose ((obj :channel))
|
||||||
(let ((status (channel-status obj)))
|
(let ((status (channel-status obj)))
|
||||||
|
|
Loading…
Reference in New Issue