{"id":21928099,"url":"https://github.com/depp/packbits","last_synced_at":"2025-03-22T12:18:40.587Z","repository":{"id":57642604,"uuid":"437123810","full_name":"depp/packbits","owner":"depp","description":"PackBits Compression in Go","archived":false,"fork":false,"pushed_at":"2021-12-21T04:22:02.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-27T11:46:05.585Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/depp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-10T21:54:31.000Z","updated_at":"2023-11-20T21:17:36.000Z","dependencies_parsed_at":"2022-08-27T22:03:42.837Z","dependency_job_id":null,"html_url":"https://github.com/depp/packbits","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fpackbits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fpackbits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fpackbits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fpackbits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depp","download_url":"https://codeload.github.com/depp/packbits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244952841,"owners_count":20537479,"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-11-28T22:20:41.560Z","updated_at":"2025-03-22T12:18:40.560Z","avatar_url":"https://github.com/depp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PackBits Compression in Go\n\n## Overview\n\nThis package provides an implementation of the PackBits compression scheme for Go. The PackBits compression scheme is a simple lossless run-length encoding scheme. It originally appeared as the compression scheme used by MacPaint on Macintosh computers in 1984.\n\n### References\n\n- [Apple Technical Note TN1023](https://web.archive.org/web/20080705155158/http://developer.apple.com/technotes/tn/tn1023.html)\n\n- [Wikipedia: PackBits](https://en.wikipedia.org/wiki/PackBits)\n\n## Example of Usage\n\n```go\n// Compress raw data.\ndata := []byte{\n    0xAA, 0xAA, 0xAA, 0x80, 0x00, 0x2A, 0xAA, 0xAA,\n    0xAA, 0xAA, 0x80, 0x00, 0x2A, 0x22, 0xAA, 0xAA,\n    0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,\n}\npacked := packbits.Pack(data)\n\n// Decompress packed data.\nunpacked, err := packbits.Unpack(packed)\n```\n\n## Efficiency\n\nThere is more than one way to encode a given block of raw data. I believe that this library will always choose one of the smallest possible encodings. In certain circumstances, this means merging adjancent blocks of data into a single block.\n\n## License\n\nPackBits is distributed under the terms of the terms of the MIT license. See LICENSE.txt for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepp%2Fpackbits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepp%2Fpackbits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepp%2Fpackbits/lists"}