Search found 3 matches

by dented42
Wed Apr 07, 2010 9:00 am
Forum: Common Lisp
Topic: How to read in portions of a file as bit-vectors
Replies: 4
Views: 4188

Re: How to read in portions of a file as bit-vectors

Ok, thank you. I was hoping to be able to read and write bit-vectors because they are printed and read in a compact form, but that is of course just convenience.
In any case I think its time to dive back into the hyperspec! :geek:
by dented42
Tue Apr 06, 2010 10:20 pm
Forum: Common Lisp
Topic: How to read in portions of a file as bit-vectors
Replies: 4
Views: 4188

Re: How to read in portions of a file as bit-vectors

Ok, but READ-BYTE returns an integer, is there a way to read int a bit vector of a specified length? or barring that, is there a way to convert from an integer (byte) to a bit vector?
by dented42
Tue Apr 06, 2010 9:52 pm
Forum: Common Lisp
Topic: How to read in portions of a file as bit-vectors
Replies: 4
Views: 4188

How to read in portions of a file as bit-vectors

Hi, I've been redoing all of my introductory CS assignments in LISP, and have arrived at Huffman compression. It seems to me that the most obvious way to deal with sequences of bits is to put them in a bit vector. This works nicely until I want to read or write to files. I have not been able to figu...