{"id":16130222,"url":"https://github.com/lambdacasserole/backspin","last_synced_at":"2026-04-30T15:32:17.037Z","repository":{"id":75385621,"uuid":"59023892","full_name":"lambdacasserole/backspin","owner":"lambdacasserole","description":"Bit flipping/manipulation Maven package for Java.","archived":false,"fork":false,"pushed_at":"2016-07-08T09:13:06.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T14:16:28.018Z","etag":null,"topics":["binary","bit-manipulation","java","maven"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/lambdacasserole.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-17T13:15:16.000Z","updated_at":"2017-08-01T16:02:13.000Z","dependencies_parsed_at":"2023-06-06T09:00:14.423Z","dependency_job_id":null,"html_url":"https://github.com/lambdacasserole/backspin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lambdacasserole/backspin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fbackspin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fbackspin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fbackspin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fbackspin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdacasserole","download_url":"https://codeload.github.com/lambdacasserole/backspin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdacasserole%2Fbackspin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32469344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","bit-manipulation","java","maven"],"created_at":"2024-10-09T22:15:01.558Z","updated_at":"2026-04-30T15:32:17.021Z","avatar_url":"https://github.com/lambdacasserole.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backspin\nBit flipping/manipulation Maven package for Java.\n\nWhen it comes to getting down and dirty with ones and zeroes, it's easy to get lost in a sea of bitwise operators. Backspin is a minimal bit manipulation library that allows you to deal in raw binary digits without ever typing '\u0026' or '|' (unless you want to, of course).\n\nUsing this library, you can literally write booleans to a stream to output data bit-by-bit:\n\n```\n// Create stream and call both overloads.\nBitOutputStream subject = new BitOutputStream();\nsubject.write(true);\nsubject.write(BitSequence.fromBitString(\"000000011111111\"));\n\n// Array should be of length 2.\nbyte[] bytes = subject.toArray();\nassertEquals(2, bytes.length);\n\n// First byte should be '10000000' or -128.\nassertEquals(-128, bytes[0]);\n\n// Second byte should be '11111111' or -1.\nassertEquals(-1, bytes[1]);\n```\n\nPerhaps you're writing your own Huffman compression stuff and you need to deal with bit sequences, perhaps you're dealing with an obscure [P4 type portable bitmap file](https://en.wikipedia.org/wiki/Netpbm_format) or maybe you just want to get your binary arithmetic on. Changes are, backspin has what you need.\n\n## Contributing\nFor most intents and purposes, Backspin is considered to fulfil its original use case. Bug fixes and suggestions are welcome, however, from any member of the community.\n\n## Acknowlegements\nThis suite of classes was isolated from the [the Denobo codebase](https://github.com/lambdacasserole/denobo) because [James Healey](https://github.com/JamesHealey94) used it like a badass to squeeze simple images into under 1KB when he put together [his app Wisecrack](http://jameshealey.me/). Cheers boi.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdacasserole%2Fbackspin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdacasserole%2Fbackspin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdacasserole%2Fbackspin/lists"}