lua-users home
lua-l archive

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


On Nov 4, 2014 1:28 PM, "Tim Hill" <drtimhill@gmail.com> wrote:

> Have you thought of using the new string.unpack() function to get the 3 bytes as a 64-bit integer? No idea if it would be faster, but perhaps doing multiple integer unpacks in one call would do it. Once you have the integer, peeling off 6 bits at a time is easy.

Surely you mean "12 bits at a time"... wait, no, I'm not going to play this game...