{"id":15570248,"url":"https://github.com/fwcd/swift-binary-coder","last_synced_at":"2025-04-24T00:24:27.309Z","repository":{"id":65149512,"uuid":"533943177","full_name":"fwcd/swift-binary-coder","owner":"fwcd","description":"Flat, untagged binary serializer for Codable Swift types","archived":false,"fork":false,"pushed_at":"2023-04-20T14:33:27.000Z","size":61,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T05:11:23.685Z","etag":null,"topics":["binary","codable","swift"],"latest_commit_sha":null,"homepage":"https://fwcd.github.io/swift-binary-coder/documentation/binarycoder","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fwcd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-07T21:08:55.000Z","updated_at":"2024-06-18T13:47:29.000Z","dependencies_parsed_at":"2023-01-02T15:22:11.187Z","dependency_job_id":null,"html_url":"https://github.com/fwcd/swift-binary-coder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-binary-coder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-binary-coder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-binary-coder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fswift-binary-coder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwcd","download_url":"https://codeload.github.com/fwcd/swift-binary-coder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536657,"owners_count":21446774,"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":["binary","codable","swift"],"created_at":"2024-10-02T17:41:46.753Z","updated_at":"2025-04-24T00:24:27.286Z","avatar_url":"https://github.com/fwcd.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binary Coder for Swift\n\n[![Build](https://github.com/fwcd/swift-binary-coder/actions/workflows/build.yml/badge.svg)](https://github.com/fwcd/swift-binary-coder/actions/workflows/build.yml)\n[![Docs](https://github.com/fwcd/swift-binary-coder/actions/workflows/docs.yml/badge.svg)](https://fwcd.github.io/swift-binary-coder/documentation/binarycoder)\n\nA simple `Encoder` and `Decoder` that serializes `Codable` Swift types to a flat, untagged binary representation. Note that this usually requires the structures to have a fixed size.\n\n## Example\n\n```swift\nstruct Point: Codable {\n    let x: UInt16\n    let y: UInt16\n}\n\nlet encoder = BinaryEncoder()\ntry encoder.encode(Point(x: 2, y: 3))\n// -\u003e Data([0, 2, 0, 3])\n\nlet decoder = BinaryDecoder()\ntry decoder.decode(Point.self, from: Data([0, 2, 0, 3]))\n// -\u003e Point(x: 2, y: 3)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fswift-binary-coder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwcd%2Fswift-binary-coder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fswift-binary-coder/lists"}