is there a way to do this? because I am trying to read the header of a swf file and there is a part in it that is never the same length in bits. it use the RECT data format
this come from the macromedia website:
http://download.macromedia.com/pub/flash/flash_file_format_specification.pdf
since it use a number of bit, I cant just take the byte, and what is worst is that the number of bits varie for the last 4 data depending on the first value, so is ther anyway to use the reader to read 5 bits, then read xbits(the number in the previous reader)4 time
or is there any workaround?
Code:
RECT
Field Type Comment
Nbits: UB[5] //Bits in each rect value field
Xmin: SB[Nbits] //x minimum position for rect
Xmax: SB[Nbits]// x maximum position for rect
Ymin: SB[Nbits] //y minimum position for rect
Ymax: SB[Nbits]// y maximum position for rect
http://download.macromedia.com/pub/flash/flash_file_format_specification.pdf
since it use a number of bit, I cant just take the byte, and what is worst is that the number of bits varie for the last 4 data depending on the first value, so is ther anyway to use the reader to read 5 bits, then read xbits(the number in the previous reader)4 time
or is there any workaround?