Issue
I'm reading in an id3 tag where the size of each frame is specified in 3 bytes. How would I be able to utilize this value as an int?
Solution
Read each byte and then put them together into your int
:
int id3 = byte0 + (byte1 << 8) + (byte2 << 16);
Make sure to take endianness into account.
Answered By - Carl Norum Answer Checked By - Timothy Miller (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.