[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] some questions on byte vectors + ports



On Wed, Jun 27, 2012 at 11:30 PM, Wolfgang De Meuter <wdmeuter@x> wrote:
> Thx for the answer!
>
>>
>>> And, given the fact that you no longer support this comfort, is there sufficient support to break down/ build up Scheme data types (integers, float,…) into / from raw bytes ? I.e., can I convert an integer or a float to a byte vector?
>>
>> Yes, the primitives read-u8 and write-u8 are all you need
>> for this.  See the withdrawn SRFI-56 for a portable implementation.
>
> I had a quick look at the SRFI56 but I only see operations that work on ports. I haven't found anything that mentions byte vectors. Am I  missing something?

SRFI-56 only handles ports, but in R7RS small you can create bytevector ports.

-- 
Alex

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports