Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: ID3v2 TAG unpack uninitialized value

by thanos1983 (Monk)
on Jan 06, 2014 at 04:59 UTC ( #1069454=note: print w/ replies, xml ) Need Help??


in reply to Re^3: ID3v2 TAG unpack uninitialized value
in thread ID3v2 TAG unpack uninitialized value

It seems correct reading 4 Bytes and printing with C4 but I thought that I should print 4 Unsigned Integers this is the reason that I was using I4. Maybe I was wrong.


Comment on Re^4: ID3v2 TAG unpack uninitialized value
Re^5: ID3v2 TAG unpack uninitialized value
by BrowserUk (Pope) on Jan 06, 2014 at 07:00 UTC

    'C' is also an unsigned integer. Just 8-bits rather than 32-bits for 'I'.

    The logic you posted (but presumably didn't write?) then strips the high bits and combined the 4x 7-bits to produce the 28-bit value.


    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".
    In the absence of evidence, opinion is indistinguishable from prejudice.
    Computers are making people easier to use everyday

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2014-08-28 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls