{"id":18876580,"url":"https://github.com/python1320/gmod_vstruct","last_synced_at":"2025-07-13T15:42:23.421Z","repository":{"id":19707968,"uuid":"22963211","full_name":"Python1320/gmod_vstruct","owner":"Python1320","description":"GMod wrapper for https://github.com/ToxicFrog/vstruct","archived":false,"fork":false,"pushed_at":"2019-05-08T18:33:14.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T02:13:29.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Python1320.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-14T17:53:30.000Z","updated_at":"2021-10-16T21:08:21.000Z","dependencies_parsed_at":"2022-07-23T13:16:33.175Z","dependency_job_id":null,"html_url":"https://github.com/Python1320/gmod_vstruct","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/Python1320%2Fgmod_vstruct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Python1320%2Fgmod_vstruct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Python1320%2Fgmod_vstruct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Python1320%2Fgmod_vstruct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Python1320","download_url":"https://codeload.github.com/Python1320/gmod_vstruct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239832635,"owners_count":19704608,"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-11-08T06:14:04.195Z","updated_at":"2025-02-20T11:47:25.049Z","avatar_url":"https://github.com/Python1320.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"GMod vstruct wrapper\r\n================\r\n\r\nRead and write binary data easily.\r\nWrapped library (and documentation): https://github.com/ToxicFrog/vstruct\r\n\r\n\r\nExample:\r\n```lua\r\nrequire 'vstruct' -- returns nothing in GMod\r\nlocal data = 'hello world\\0\\1\\1\\1\\1'\r\nPrintTable(vstruct.read(\"z u4\",data))\r\n--{\r\n--\t[1] = \"hello world\",\r\n--\t[2] = 16843009,\r\n--}\r\nlocal data = 'hello world\\0\\1\\1\\1\\1' print(vstruct.write(\"z u4\",vstruct.read(\"z u4\",data))==data)\r\n--true\r\n```\r\n\r\nhow to use wrapfile:\r\n```lua\r\nlocal f=file.Open(\"test.dat\",'rb','DATA')\r\nassert(f)\r\nf=vstruct.wrapfile(f)\r\n\r\nPrintTable(vstruct.read(\"u4u4u4\",f))\r\n\r\nf:close() -- note normal lua style\r\n```\r\n\r\n\r\n_Contains submodules!_ Checkout with ```git clone --recursive --depth 1 https://github.com/Python1320/gmod_vstruct.git```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython1320%2Fgmod_vstruct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython1320%2Fgmod_vstruct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython1320%2Fgmod_vstruct/lists"}