[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io.format (was: Reported to the Bloat Police: string.pack, .unpack and .packsize!)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 22 Aug 2015 17:51:14 -0300
> > An external library is needed if you want to write binary data, such as
> > numbers in their native format.
>
> Um ... can't string.pack() return a number in its native format as a
> string (a binary blob)? And doesn't io.open() support the "b" mode?
> Because it passes it directly to C's fopen()?
That's what I meant. The io library cannot do it on its own. It was an
argument in favor of string.pack. Perhaps I misunderstood where this
thread was going. Anyway, it's clear now.