{"id":18683519,"url":"https://github.com/narasimha1997/bit_vector","last_synced_at":"2026-03-07T06:31:20.129Z","repository":{"id":104766545,"uuid":"205432166","full_name":"Narasimha1997/bit_vector","owner":"Narasimha1997","description":"A header-only bit vector library for C . This can be used for implementing dynamic bit-vectors for building Bloom-Filters and Hyper-Logs .","archived":false,"fork":false,"pushed_at":"2019-09-01T14:40:17.000Z","size":21,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T04:40:25.246Z","etag":null,"topics":["bloom-filter","c","cplusplus","datastructures","hashtable","hyperloglog"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Narasimha1997.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,"zenodo":null}},"created_at":"2019-08-30T17:56:49.000Z","updated_at":"2022-12-05T10:31:41.000Z","dependencies_parsed_at":"2023-05-29T16:00:29.272Z","dependency_job_id":null,"html_url":"https://github.com/Narasimha1997/bit_vector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Narasimha1997/bit_vector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narasimha1997%2Fbit_vector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narasimha1997%2Fbit_vector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narasimha1997%2Fbit_vector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narasimha1997%2Fbit_vector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Narasimha1997","download_url":"https://codeload.github.com/Narasimha1997/bit_vector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narasimha1997%2Fbit_vector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"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":["bloom-filter","c","cplusplus","datastructures","hashtable","hyperloglog"],"created_at":"2024-11-07T10:14:49.978Z","updated_at":"2026-03-07T06:31:20.102Z","avatar_url":"https://github.com/Narasimha1997.png","language":"C","readme":"# bit_vector\nA header-only bit vector library for C . This can be used for implementing dynamic bit-vectors for building Bloom-Filters and Hyper-Logs .\n\nThis repository provides header files for creating and using a datastructure called bit-vector. Bit Vector is char array with operations implemented \nat bit level.\n\n### Usage :\nJust import `bit_vector.h` , you are ready to go.\n\nExample program demonstrating usage of `bit_vector.h` routines :\n\n```C\n#include\u003cbit_vector.h\u003e\n#include\u003cstdio.h\u003e\n\nint main(int argc, char const *argv[])\n{\n    bit_group_t * bit_vector = create_bit_vector(64);\n    set_bit(bit_vector, 15);\n    set_bit(bit_vector, 10);\n    set_bit(bit_vector, 0);\n    set_bit(bit_vector, 20);\n    set_bit(bit_vector, 33);\n    set_bit(bit_vector, 63);\n\n    printf(\"-------Tests---------\\n\");\n    \n    int count = get_n_bits_set(bit_vector, 64);\n    printf(\"Count test :  %d\\n\", count);\n    printf(\"is set test : %d\\n\", check_is_set(bit_vector, 32));\n    printf(\"\\nReset test\\n\");\n    reset_bit(bit_vector, 20);\n    printf(\"Bit at position 20 : %d\\n\", check_is_set(bit_vector, 20));\n\n    return 0;\n}\n\n```\nYou can also use routines in `bit.h` to implement your own bit vector functionalities.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarasimha1997%2Fbit_vector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarasimha1997%2Fbit_vector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarasimha1997%2Fbit_vector/lists"}