{"id":15984738,"url":"https://github.com/jaredreisinger/iffdump","last_synced_at":"2025-04-04T20:46:20.393Z","repository":{"id":146779008,"uuid":"123984229","full_name":"JaredReisinger/iffdump","owner":"JaredReisinger","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-05T22:00:08.000Z","size":707,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T05:26:10.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaredReisinger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-05T21:59:51.000Z","updated_at":"2018-03-05T22:00:10.000Z","dependencies_parsed_at":"2023-04-26T09:47:09.362Z","dependency_job_id":null,"html_url":"https://github.com/JaredReisinger/iffdump","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"36ed90bb8b628d7f9305d6d051e5832a96af6430"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaredReisinger%2Fiffdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaredReisinger%2Fiffdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaredReisinger%2Fiffdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaredReisinger%2Fiffdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaredReisinger","download_url":"https://codeload.github.com/JaredReisinger/iffdump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249602,"owners_count":20908211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T02:10:19.405Z","updated_at":"2025-04-04T20:46:20.358Z","avatar_url":"https://github.com/JaredReisinger.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iffdump\n\nTools to dump IFF-formatted files.\n\n\n## design\n\nThere are some different approaches to understanding an IFF file:\n\n* Run through start-to-finish, dealing with chunks as they are encountered\n* unmarshal into strongly-typed structure.\n\nWhile the former seems like a reasonable first approach, it makes it much harder\nto *do* anything with the data... for example, in attempting to understand a\nQuetzal save file, we really do need to understand the IFZS, IFhd, CMem, UMem,\nStks, and IntD chunks.\n\nSo... let's look/compare the JSON decode (and other unmarshal) logic.  Here, a\nvery generic IFF-chunk reader *is* useful, as a utility.  Really, we just want\nsomething that, given an io.Reader (or iff.ReadAtSeeker), can give us a series\nof chunks.  Then, each chunk has its own unmarshalling, which may use the\n\"series of chunks\" logic again.\n\nSo, we could create something that acts like a BinaryUnmarshaler, but that\ninterface reads from a `[]byte`... which we may not want to assume!  (That\nsaid, `json.NewDecoder()` takes an `io.Reader`... so go figure!)\n\nIn order to successfully unmarshal/decode, the decoder needs hooks for every\nchunk type, so it can call them to handle the data...  Unlike `json.Decode()`,\nwe can't provide the typed struct first... we have to read a little bit in order\nto determine the struct needed.  Thus, the instead of decoding *into* a struct,\nthe decoders must *create* the struct/data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredreisinger%2Fiffdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredreisinger%2Fiffdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredreisinger%2Fiffdump/lists"}