Re: [Scheme-reports] some questions on byte vectors + ports Aubrey Jaffer (27 Jun 2012 16:54 UTC)

Re: [Scheme-reports] some questions on byte vectors + ports Aubrey Jaffer 27 Jun 2012 16:52 UTC

 | From: Wolfgang De Meuter <wdmeuter@vub.ac.be>
 | Date: Wed, 27 Jun 2012 14:06:41 +0200
 |
 | ...
 | to me, byte vectors are pretty useless if you don't have a minimal
 | amount of comfort for encoding/decoding data types.  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?

SLIB provides R4RS/R5RS Scheme code to accomplish these conversions in
a way which is unaffected by host byte-order.  See:
<http://people.csail.mit.edu/jaffer/slib/Byte_002fNumber-Conversions.html#Byte_002fNumber-Conversions>

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