[protobuf] Re: Fast navigation in binary gzip'ed file that includes messages of variable length

2012-05-22 Thread Roman Vinogradov
Yes, this is what I am thinking about too. I will use format similar to TFile with some meta datas relevant to my problem. If the file gets corrupted somewhere and index is not available then I will be able to recover data before the place where corruption occurs and build data index at least (if

[protobuf] Read custom binary file with inner conditions

2012-05-22 Thread HarpyWar
Hello, I want to make a program that can edit D2S files (Diablo 2 character). There are several fields in D2S format with conditions and I can't find this functionality in the protobuf docs. For example, Golem Item field is exists only when bHasGolem value equals 1 (see here

Re: [protobuf] Read custom binary file with inner conditions

2012-05-22 Thread Christopher Smith
Protobuf is a library for serializing in its own format, not other predefined binary formats. It is also by design fairly simple with limited integrity checking features intended to help with backwards and forwards compatibility. I don't think it can help you with editing Diablo2 files.