in reply to Re: Unable to unpack a hex string
in thread Unable to unpack a hex string

FYI, another way to read bits from a string is to use vec, that makes it possible to read N bits from position P.

Yes, but it also has byte/word/doubleword/quadword alignment restrictions.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Replies are listed 'Best First'.
Re^3: Unable to unpack a hex string
by Eily (Monsignor) on May 17, 2017 at 09:57 UTC

    Oh right, thanks. So that's either pack and unpack or binary masking and shifting operations (maybe combined with vec) on integer values then.