How I use D

David Gileadi gileadisNOSPM at gmail.com
Wed Jul 1 20:02:24 UTC 2020


On 7/1/20 12:35 PM, JN wrote:
> On Wednesday, 1 July 2020 at 10:27:21 UTC, kdmult wrote:
>>
>> Maybe https://kaitai.io/ will be useful to you.
> 
> Looks very similar to Google's Protocol Buffers. What is the main 
> benefit of kaitai over protobuf?

I was curious too. From their FAQ [1]:

> In short: these projects and Kaitai Struct solve completely different problems.

There follows an explanation that points out how Kaitai Struct is 
designed to handle existing binary formats like .gif, .wav or .zip.

> So, to summarize:
> 
> * "Have data in memory, need binary protocol" ⇒ use Protobuf & company
> * "Have binary protocol, need data in memory" ⇒ use Kaitai Struct
[1]: http://doc.kaitai.io/faq.html#vs-protobuf


More information about the Digitalmars-d mailing list