Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Unable to unpack a hex string

by BrowserUk (Patriarch)
on May 17, 2017 at 09:44 UTC ( [id://1190450]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190450]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found