TinyVG / specification

The specification for TinyVG. This is the central authority for the file system
https://tinyvg.tech/
MIT License
246 stars 7 forks source link

[Proposal] Should EOD be optional? #2

Closed marler8997 closed 2 years ago

marler8997 commented 2 years ago

What do you think about making EOD optional?

ikskuh commented 2 years ago

No, the EOD marker isn't there "just because it's nice", but it's required to determine if a file is actually valid TinyVG or just random garbage.

It also allows you to read TinyVG files from a stream with additional data after it without encoding (or knowing) the encoded file size before streaming the data.

marler8997 commented 2 years ago

In the stream example I agree you would need EOD. Why would you say EOD is required to know whether the file is valid, doesn't the magic/version/header serve that purpose well enough?