{"id":17218791,"url":"https://github.com/nyuichi/xvect","last_synced_at":"2025-10-19T01:49:51.940Z","repository":{"id":15215742,"uuid":"17944239","full_name":"nyuichi/xvect","owner":"nyuichi","description":"super tiny vector library","archived":false,"fork":false,"pushed_at":"2014-09-26T03:25:48.000Z","size":216,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T13:24:10.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nyuichi.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":"2014-03-20T13:49:06.000Z","updated_at":"2014-09-13T16:01:14.000Z","dependencies_parsed_at":"2022-09-05T12:51:22.355Z","dependency_job_id":null,"html_url":"https://github.com/nyuichi/xvect","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/nyuichi%2Fxvect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuichi%2Fxvect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuichi%2Fxvect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuichi%2Fxvect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyuichi","download_url":"https://codeload.github.com/nyuichi/xvect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245483975,"owners_count":20622987,"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-10-15T03:48:09.392Z","updated_at":"2025-10-19T01:49:46.904Z","avatar_url":"https://github.com/nyuichi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xvect - super tiny extensible (and polymorphic) vector [![Build Status](https://travis-ci.org/wasabiz/xvect.svg)](https://travis-ci.org/wasabiz/xvect)\n\n- implemented as a ring buffer\n- ok to locate an element by nagative number\n- written in pure C99\n- all components are in single header file\n\n# Usage\n\n```c\ntypedef struct xvect xvect;\n\nstatic inline void xv_init(xvect *, size_t);\nstatic inline void xv_destroy(xvect *);\n\nstatic inline size_t xv_size(xvect *);\n\nstatic inline void xv_reserve(xvect *, size_t);\nstatic inline void xv_shrink(xvect *, size_t);\n\nstatic inline void *xv_get(xvect *, size_t);\nstatic inline void xv_set(xvect *, size_t, void *);\n\nstatic inline void xv_push(xvect *, void *);\nstatic inline void *xv_pop(xvect *);\n\nstatic inline void *xv_shift(xvect *);\nstatic inline void xv_unshift(xvect *, void *);\n\nstatic inline void xv_splice(xvect *, size_t, ptrdiff_t);\nstatic inline void xv_insert(xvect *, size_t, void *);\n```\n\n# License\n\nThis software is licensed under the 2-clause BSD license. See LICENSE for details.\n\n# Auther\n\nYuichi Nishiwaki (yuichi@idylls.jp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyuichi%2Fxvect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyuichi%2Fxvect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyuichi%2Fxvect/lists"}