Search
15:01:33
phoe
Should TO-BYTE-ARRAY only accept ub8 vectors?
15:02:07
Shinmera
It's going to error in CFFI on wrong data
15:02:11
Shinmera
so nothing to do there in my opinion
15:03:08
Shinmera
which I actually don't think is portable to a lot, and not according to CFFI unless the vector is specially allocated
15:03:22
phoe
the vector must be allocated as ub8 vector
15:03:39
phoe
also, CFFI will accept things as weird as (unsigned-byte 2)
15:03:53
Shinmera
cffi has an extra wrapper call that you should use to create arrays usable with w-p-t-v-d
15:04:07
Shinmera
on SBCL it works with any ub8 vector
15:04:14
Shinmera
dunno about CCL and ECL
15:04:35
phoe
make-shareable-byte-vector
15:05:58
phoe
ccl and ecl have the same behavior
15:06:04
phoe
only LW and ACL have some weirdness there
15:06:14
Shinmera
those are unsupported so whatever
15:06:20
Shinmera
just document needs to be a ub8 vector
15:07:46
phoe
document? or check-type (vector ub8)?