Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Fixed starting bytes (was: Re^4: Geo Package files)

by Marshall (Canon)
on Mar 12, 2022 at 20:12 UTC ( [id://11142049]=note: print w/replies, xml ) Need Help??


in reply to Fixed starting bytes (was: Re^4: Geo Package files)
in thread Geo Package files

This is a common protocol feature. For example a .WAV file starts with WAVE - the letters RIFF can also appear. Using ASCII letters makes it easy to see that you have the right kind of format just by inspection (if you deal with ASCII often). Often binary dump views will display the ASCII if it is within normal "printable" character range as added info. This is also helpful to make sure that you are at a "proper beginning". Decoding the thing requires being certain that you are at a valid byte(0) because all field definitions are a delta to that byte's "address". So this is a cheap (very little bandwidth), "sanity check". This is also often seen with communication links and can assist with resynchronization when some data "goes missing".
  • Comment on Re: Fixed starting bytes (was: Re^4: Geo Package files)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-23 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found