{"id":21500905,"url":"https://github.com/aermolaev/bitarray","last_synced_at":"2025-03-17T13:24:28.591Z","repository":{"id":141662303,"uuid":"267289996","full_name":"aermolaev/bitarray","owner":"aermolaev","description":"A bit array is an array data structure that compactly stores bits.","archived":false,"fork":false,"pushed_at":"2020-05-27T10:41:40.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T22:49:29.047Z","etag":null,"topics":["bit","bitarray","concurency","go","golang"],"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/aermolaev.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":"2020-05-27T10:31:55.000Z","updated_at":"2021-10-27T16:00:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"961452af-61f1-4f26-be09-d600a99d7b93","html_url":"https://github.com/aermolaev/bitarray","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aermolaev%2Fbitarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aermolaev%2Fbitarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aermolaev%2Fbitarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aermolaev%2Fbitarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aermolaev","download_url":"https://codeload.github.com/aermolaev/bitarray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244039202,"owners_count":20387835,"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":["bit","bitarray","concurency","go","golang"],"created_at":"2024-11-23T17:48:18.788Z","updated_at":"2025-03-17T13:24:28.569Z","avatar_url":"https://github.com/aermolaev.png","language":"Go","readme":"# BitArray\n\nA bit array (also known as bit map, bit set, bit string, or bit vector)\nis an array data structure that compactly stores bits.\n\n## Installation\n\n    go get github.com/aermolaev/bitarray\n\n## Simple Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/aermolaev/bitarray\"\n)\n\nfunc main() {\n\tb := bitarray.NewBitArray(1_000_000)\n\n\tb.Mark(4000)\n\tfmt.Println(b.Get(4000)) // true\n\n\tb.Unmark(4000)\n\tfmt.Println(b.Get(4000)) // false\n\n\ti := b.MarkFree()        // 0\n\tfmt.Println(i)           // true\n\tfmt.Println(b.Get(i))    // true\n\tfmt.Println(b.IsEmpty()) // false\n\tfmt.Println(b.HasRoom()) // true\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faermolaev%2Fbitarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faermolaev%2Fbitarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faermolaev%2Fbitarray/lists"}