{"id":27933109,"url":"https://github.com/wasabithumb/vario","last_synced_at":"2025-05-07T04:27:28.049Z","repository":{"id":291307145,"uuid":"977236138","full_name":"WasabiThumb/vario","owner":"WasabiThumb","description":"Java 8 library for reading/writing variable-length primitives","archived":false,"fork":false,"pushed_at":"2025-05-03T18:31:16.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-03T19:34:24.852Z","etag":null,"topics":["java","variable-length","varint","vf128"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WasabiThumb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-05-03T18:23:17.000Z","updated_at":"2025-05-03T18:31:19.000Z","dependencies_parsed_at":"2025-05-03T19:45:04.118Z","dependency_job_id":null,"html_url":"https://github.com/WasabiThumb/vario","commit_stats":null,"previous_names":["wasabithumb/vario"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasabiThumb%2Fvario","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasabiThumb%2Fvario/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasabiThumb%2Fvario/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasabiThumb%2Fvario/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WasabiThumb","download_url":"https://codeload.github.com/WasabiThumb/vario/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252812579,"owners_count":21808167,"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":["java","variable-length","varint","vf128"],"created_at":"2025-05-07T04:27:27.138Z","updated_at":"2025-05-07T04:27:28.034Z","avatar_url":"https://github.com/WasabiThumb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://raw.githubusercontent.com/WasabiThumb/vario/refs/heads/master/doc/icon.png\" style=\"height: 1em;\" alt=\"\"\u003e vario\nJava 8 library for reading/writing variable-length primitives (VarInt, VarUInt, VarFloat, VarDouble)\n\n## Quick Start\n### Declaration\n#### Gradle (Kotlin)\n```kotlin\ndependencies {\n    implementation(\"io.github.wasabithumb:vario:0.1.0\")\n}\n```\n\n#### Gradle (Groovy)\n```groovy\ndependencies {\n    implementation 'io.github.wasabithumb:vario:0.1.0'\n}\n```\n\n#### Maven\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eio.github.wasabithumb\u003c/groupId\u003e\n        \u003cartifactId\u003evario\u003c/artifactId\u003e\n        \u003cversion\u003e0.1.0\u003c/version\u003e\n        \u003cscope\u003ecompile\u003c/scope\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n### Basic Usage\n```java\nVarDataOutputStream vdos = new VarDataOutputStream(os);\n\n// Signed 32-bit integers\nvdos.writeVarInt32(100);\nvdos.writeVarInt32(-100);\n\n// Unsigned 32-bit integers\nvdos.writeVarUInt32(50);\nvdos.writeVarUInt32(200);\n\n// Signed 64-bit integers\nvdos.writeVarInt64(Long.MIN_VALUE);\nvdos.writeVarInt64(Long.MAX_VALUE);\n\n// Unsigned 64-bit integers\nvdos.writeVarUInt64(0x400000000L);\nvdos.writeVarUInt64(0x800000000L);\n\n// 32-bit floats\nvdos.writeFloat(0.75f);\nvdos.writeFloat(Float.NaN);\n\n// 64-bit floats\nvdos.writeDouble(1.25d);\nvdos.writeDouble(Double.NaN);\n```\n\n## Credit\n- VarFloat/VarDouble format courtesy of [michaeljclark/vf128](https://github.com/michaeljclark/vf128)\n\n## License\n```text\nCopyright 2025 Wasabi Codes\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasabithumb%2Fvario","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasabithumb%2Fvario","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasabithumb%2Fvario/lists"}