There are a number of binary formats, this format is Markus Webers o5m format.
The format is a storage format designed to be quicker and smaller than the XML format but preserve the element ordering and features of that format. We can therefore pretty much re-use most of the code that is used for reading the XML format.