I'm having trouble reading back a float from a file that I just wrote:
(use endian-port)
(let ([outp (port-endian-port (open-output-file eptest))])
(endian-port-write-ieee-float32 outp 5.25)
(close-endian-port outp))
(let ([inp (port-endian-port (open-input-file eptest))])
Hello,
Actually, the endian-blob egg in Chicken 4 is meant to take over the
functionality of endian-port. Your port of endian-port would probably
have to rely on the wrappers generated by swig, which are not especially
readable or maintainable. Unfortunately, I don't have Chicken 3
installed
On Mon, Feb 22, 2010 at 8:52 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:
Actually, the endian-blob egg in Chicken 4 is meant to take over the
functionality of endian-port.
I saw that, but wrapping a port is pretty useful actually, since
endian conversions are usually relevant for I/O.
On Mon, Feb 22, 2010 at 7:34 PM, Shawn Rutledge
shawn.t.rutle...@gmail.com wrote:
Functions like endian_lowio_read_int8 return by value, but
endian_lowio_read_ieee_float32 set a value into a passed pointer, so
wonder why that is... anyway seems to be where the problem is. Maybe
it's done that