|
Hi,
I want to make a script which will analyze a
gif files.
to read file i use:
>> gif: read/binary %my.gif
== #{ 47494638396196005900B30000FFFFFFE2E2E2C2C2C2A2A2A28181815B5B5B31 31310101010000000000000000000000000000000000000000000000002C... ....but how to work with this binary
type?
I know that first 3 bytes means the
signature... next 3 bytes version ...
etc.
so:
>> to-string #{474946}
== "GIF" >> to-string #{383961}
== "89a" than 8. and 7. byte means
the Logical Screen Width:
>> to-integer #{0096}
== 150 What I don't know is how to parse the
binary type
(for example how to get the first
3 bytes or the seventh byte)?
Is there any way how to get from binary
#{4749463839619600} string "4749463839619600" ?
oLdes
|
- [REBOL] How to parse BINARY type Re: reboldes
- [REBOL] How to parse BINARY type Re: Al . Bri
