masscry / ngx

This is pet project, main idea is to develop several solutions for common task appearing in indie game development. Tools are built with crossplatform in mind.
MIT License
0 stars 0 forks source link

Update index format #9

Open masscry opened 7 years ago

masscry commented 7 years ago

It seems that we need some functionality to identify head blocks with different data types.

I decided not to change block definitions itself, but to add some inner magic numbers to the headers of data stored inside blocks.

So, for example first two bytes of NMD equals to 0x02.

Empty blocks by default are filled with zeros, so let index header need to has an 0x01 as first two bytes.