You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe it would be a good idea to have an embedded DSL for describing file formats, and have the internal code be mostly generated automatically. Something like (straw syntax):
The functions ComperProcessDictionaryParameters, KosinskiProcessInlineDictionaryParameters, and KosinskiProcessDictionaryParameters have prototypes of the form
The context variable can be used to read additional bytes, if needed, or process the parameters it receives, before doing the copy. It would be ideal to also have a LZSS::DictionaryCopy function that can handle the copy automatically, and which can be called by those. There is also a LZSS::Context::set_done function that signals the decoder that compression has ended.
I still need to think how to make this work for both compression or decompression.
The text was updated successfully, but these errors were encountered:
Maybe it would be a good idea to have an embedded DSL for describing file formats, and have the internal code be mostly generated automatically. Something like (straw syntax):
The functions
ComperProcessDictionaryParameters
,KosinskiProcessInlineDictionaryParameters
, andKosinskiProcessDictionaryParameters
have prototypes of the formThe
context
variable can be used to read additional bytes, if needed, or process the parameters it receives, before doing the copy. It would be ideal to also have a LZSS::DictionaryCopy function that can handle the copy automatically, and which can be called by those. There is also a LZSS::Context::set_done function that signals the decoder that compression has ended.I still need to think how to make this work for both compression or decompression.
The text was updated successfully, but these errors were encountered: