Re: I wonder if I'm missing something...

"David McClain (as dbm at refined-audiometrics dot com)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
I can do with FLI, but it involves overt copying from a byte vector read into by READ-SEQUENCE, and then copy out as another type.  I was hoping for a more direct solution akin to C typecasts.



> On Nov 7, 2025, at 06:54, Yuri Davidovsky (as work at disclosure dot ie) <[email protected]> wrote:
> 
> 
>> On 7 Nov 2025, at 14:38, David McClain (as dbm at refined-audiometrics dot com) <[email protected]> wrote:
>> 
>> I keep running into the need to overload vectors for I/O purposes, where the I/O channel only works in units of octets, but my data is actually vectors of single-precision floats.
> 
> Aren't you talking about typed aref, essentially?
> 
> https://www.lispworks.com/documentation/lw80/lw/lw-sys-92.htm
> 
> Also I would imagine it should also be trivial to do using FLI, although I think typed aref is easier still.
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> [email protected]
> http://www.lispworks.com/support/lisp-hug.html


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.