binary-structures
binary-structures copied to clipboard
fixed size vectors don't work?
(define-io-structure aa
(b (vector uint8 3)))
(let ((a (coerce '(1 2 3) '(simple-array (unsigned-byte 8) 1))))
(read-aa a))
fails with
Value of
(SB-KERNEL:ALLOCATE-VECTOR 157 SB-C::%LENGTH SB-C::NWORDS) in
(SB-KERNEL:THE*
((ARRAY (UNSIGNED-BYTE 8) (3)) :CONTEXT (SB-KERNEL::STRUCT-CONTEXT AA . B))
#:B)
is
#(),
not a
(VECTOR (UNSIGNED-BYTE 8) 3).
(WARNs about the same thing during compilation as well