{"id":17116906,"url":"https://github.com/jverkoey/binarycodable","last_synced_at":"2025-04-06T07:14:26.818Z","repository":{"id":56903685,"uuid":"171369431","full_name":"jverkoey/BinaryCodable","owner":"jverkoey","description":"Swift Codable-like interfaces for binary representations.","archived":false,"fork":false,"pushed_at":"2020-07-08T20:38:39.000Z","size":112,"stargazers_count":394,"open_issues_count":9,"forks_count":16,"subscribers_count":9,"default_branch":"develop","last_synced_at":"2025-04-03T12:51:54.873Z","etag":null,"topics":["binary","codable","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jverkoey.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-02-18T23:07:55.000Z","updated_at":"2025-03-27T19:26:04.000Z","dependencies_parsed_at":"2022-08-21T02:50:11.244Z","dependency_job_id":null,"html_url":"https://github.com/jverkoey/BinaryCodable","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jverkoey%2FBinaryCodable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jverkoey%2FBinaryCodable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jverkoey%2FBinaryCodable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jverkoey%2FBinaryCodable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jverkoey","download_url":"https://codeload.github.com/jverkoey/BinaryCodable/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445681,"owners_count":20939961,"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-14T17:49:55.926Z","updated_at":"2025-04-06T07:14:26.802Z","avatar_url":"https://github.com/jverkoey.png","language":"Swift","readme":"# Binary Codable\n\nBinary Codable provides Swift Codable-like interfaces for converting types to and from binary representations.\n\nBinary Codable is optimized for reading and writing blocks of binary data as a stream of bytes. This makes Binary Codable useful for network protocols, binary file formats, and other forms of tightly-packed binary information.\n\nThis is not an official Google product.\n\n- [Features](#features)\n- [Known usage in the wild](#known-usage-in-the-wild)\n- [Introduction](Docs/)\n- [Cookbook](Docs/Usage.md)\n  - [Decode a binary file from disk](Docs/Usage.md#decode-a-binary-file-from-disk)\n  - [Encode an object as binary data](Docs/Usage.md#encode-an-object-as-binary-data)\n  - [Decode an object from a socket](Docs/Usage.md#decode-an-object-from-a-socket)\n  - [Decode a null-terminated string](Docs/Usage.md#decode-a-null-terminated-string)\n  - [Decode a string with a maximum length](Docs/Usage.md#decode-a-string-with-a-maximum-length)\n  - [Encode a null-terminated string](Docs/Usage.md#encode-a-null-terminated-string)\n  - [Decode a sequence of bytes](Docs/Usage.md#decode-a-sequence-of-bytes)\n  - [Encode a sequence of bytes](Docs/Usage.md#encode-a-sequence-of-bytes)\n- [Supported technologies](#supported-technologies)\n- [License](#license)\n\n## Features\n\n- [x] Encode from Swift types to `Data`.\n- [x] Decode from `Data` to Swift types.\n- [x] Efficiently encode/decode large blocks of arbitrary data.\n- [x] Lazy decoding (read bytes from a source only as they're needed).\n- [x] Encode and decode fixed-width integer types.\n- [x] Encode and decode strings with or without terminators.\n- [x] Cap decoding containers to a maximum length.\n\n## Known usage in the wild\n\n- [BinaryCookies](https://github.com/interstateone/BinaryCookies): Read and write Apple's .binarycookies files.\n- [MySqlConnector](https://github.com/jverkoey/MySqlConnector): A pure Swift implementation of the MySql client/server protocol.\n\n## Supported technologies\n\n- iOS 13.0+ / macOS 10.15+\n- Xcode 11.5+\n- Ubuntu 16.04\n- Swift 5.2\n\n## License\n\nBinaryCodable is released under the Apache 2.0 license. [See LICENSE](LICENSE) for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjverkoey%2Fbinarycodable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjverkoey%2Fbinarycodable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjverkoey%2Fbinarycodable/lists"}