L
Larry
Hi,
before I go into my questions here's a little excerpt from a web site:
http://www.id3.org/id3v2-00
"The ID3 tag size is encoded with four bytes where the first bit (bit 7)
is set to zero in every byte, making a total of 28 bits. The zeroed bits
are ignored, so a 257 bytes long tag is represented as $00 00 02 01."
"The reason to use 28 bits (representing up to 256MB) for size
description is that we don't want to run out of space here."
I tried to convert 00 00 02 01 from hex to decimal by using my calc and
it gave me 513 not 257
In order to get 257 I should have done 00 00 01 01, what am I doing
wrong?
is there anyway to have "pack" to get round it?
Here's a little more from the web site:
"The three character frame identifier is followed by a three byte size
descriptor, making a total header size of six bytes in every frame."
is there anyway to have "pack" to get round this? a number value into 3
bytes? $00 $00 $00 ??
thanks ever so much!
before I go into my questions here's a little excerpt from a web site:
http://www.id3.org/id3v2-00
"The ID3 tag size is encoded with four bytes where the first bit (bit 7)
is set to zero in every byte, making a total of 28 bits. The zeroed bits
are ignored, so a 257 bytes long tag is represented as $00 00 02 01."
"The reason to use 28 bits (representing up to 256MB) for size
description is that we don't want to run out of space here."
I tried to convert 00 00 02 01 from hex to decimal by using my calc and
it gave me 513 not 257
In order to get 257 I should have done 00 00 01 01, what am I doing
wrong?
is there anyway to have "pack" to get round it?
Here's a little more from the web site:
"The three character frame identifier is followed by a three byte size
descriptor, making a total header size of six bytes in every frame."
is there anyway to have "pack" to get round this? a number value into 3
bytes? $00 $00 $00 ??
thanks ever so much!