{"id":20174005,"url":"https://github.com/rikvdh/zringbuf","last_synced_at":"2025-08-05T02:19:16.331Z","repository":{"id":55402262,"uuid":"272192084","full_name":"rikvdh/zringbuf","owner":"rikvdh","description":"Zero-allocation ring-buffer library","archived":false,"fork":false,"pushed_at":"2020-07-16T06:57:31.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T03:39:40.512Z","etag":null,"topics":["buffer","c","clib","embedded","memory","ring-buffer","ringbuf","ringbuffer","zero-allocation"],"latest_commit_sha":null,"homepage":null,"language":"C","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/rikvdh.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}},"created_at":"2020-06-14T11:52:46.000Z","updated_at":"2024-08-01T04:31:56.000Z","dependencies_parsed_at":"2022-08-14T23:30:53.218Z","dependency_job_id":null,"html_url":"https://github.com/rikvdh/zringbuf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rikvdh/zringbuf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikvdh%2Fzringbuf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikvdh%2Fzringbuf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikvdh%2Fzringbuf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikvdh%2Fzringbuf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikvdh","download_url":"https://codeload.github.com/rikvdh/zringbuf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikvdh%2Fzringbuf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268820724,"owners_count":24312461,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["buffer","c","clib","embedded","memory","ring-buffer","ringbuf","ringbuffer","zero-allocation"],"created_at":"2024-11-14T01:40:59.827Z","updated_at":"2025-08-05T02:19:16.311Z","avatar_url":"https://github.com/rikvdh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zringbuf\n\n[![Build Status](https://travis-ci.org/rikvdh/zringbuf.svg?branch=master)](https://travis-ci.org/rikvdh/zringbuf)\n\nZero-Allocation ring-buffer in C\n\n## Installation\n\n\nWith [clib](https://github.com/clibs/clib):\n\n```sh\nclib install rikvdh/zringbuf\n```\n\n## Example\n\n```c\n#include \"zringbuf.h\"\n#include \u003cassert.h\u003e\n\n// Create ring-buffer called 'buf' with size of 100 bytes\nZRINGBUF_DECL(buf, 100)\n\nint main(int argc, char **argv)\n{\n    zringbuf_queue(\u0026buf, 'a');\n\n    zringbuf_queue_arr(\u0026buf, \"bcd\", 3);\n\n    assert(4 == zringbuf_size_used(\u0026buf));\n\n    char ch;\n\n    assert(true == zringbuf_dequeue(\u0026buf, \u0026ch));\n    assert(ch == 'a');\n\n    return 0;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikvdh%2Fzringbuf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikvdh%2Fzringbuf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikvdh%2Fzringbuf/lists"}