{"id":17004881,"url":"https://github.com/clickermonkey/buffero","last_synced_at":"2025-10-26T13:43:57.372Z","repository":{"id":152212142,"uuid":"9776720","full_name":"ClickerMonkey/Buffero","owner":"ClickerMonkey","description":"A Java library used for efficiently and safely working with ByteBuffers.","archived":false,"fork":false,"pushed_at":"2013-11-15T20:50:18.000Z","size":376,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T10:40:43.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"osl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ClickerMonkey.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}},"created_at":"2013-04-30T18:01:01.000Z","updated_at":"2024-01-13T23:51:27.000Z","dependencies_parsed_at":"2023-04-09T12:14:53.773Z","dependency_job_id":null,"html_url":"https://github.com/ClickerMonkey/Buffero","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ClickerMonkey/Buffero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FBuffero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FBuffero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FBuffero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FBuffero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClickerMonkey","download_url":"https://codeload.github.com/ClickerMonkey/Buffero/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FBuffero/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260252488,"owners_count":22981273,"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-14T04:44:40.720Z","updated_at":"2025-10-26T13:43:52.329Z","avatar_url":"https://github.com/ClickerMonkey.png","language":"Java","readme":"buffero\n=======\n\n![Stable](http://i4.photobucket.com/albums/y123/Freaklotr4/stage_stable.png)\n\nA Java library used for efficiently working with ByteBuffers.\n\n**Features**\n- A way to write to ByteBuffers that avoids BufferOverflow and BufferUnderflow exceptions. This means the object you write to either resizes the underlying buffer or has a chain of buffers, and the object you read from is marked as invalid if there isn't enough data - and default values are returned.\n- BufferFactory has several implementations to quickly allocate, cache, reuse, and dispose of ByteBuffers\n\n**Documentation**\n- [JavaDoc](http://gh.magnos.org/?r=http://clickermonkey.github.com/Buffero/)\n\n**Example**\n\n```java\n// A listener to the buffer stream when flush is invoked.\nBufferStreamListener listener = ...;\n\n// A factory to manage buffers\nBufferFactory buffers = new BufferFactoryBinary(8, 14);\n\n// A stream of data which can expand\nBufferStream stream = new BufferStream(listener, buffers);\n\n// Write data to the stream\nByteWriter out = new ByteWriter(stream);\nout.putBoolean(true);\nout.putUint(234L);\nout.putString(\"Meow\");\nout.putObject(new BigDecimal(\"3.323215235123\"));\nout.putFloatArray(new float[] {4.5f, 1f});\nout.putIntArray(null);\n\n// Read data from the stream\nByteReader in = new ByteReader(stream);\nboolean d0 = in.getBoolean();               // true\nlong d1 = in.getUint();                     // 234\nString d2 = in.getString();                 // \"Meow\" \nBigDecimal d3 = in.getCastObject();         // 3.323215235123\nfloat[] d4 = in.getFloatArray();            // {4.5f, 1f}\nint[] d5 = in.getIntArray();                // null\n\n// in.isValid() == true, read more than the stream has then check\nlong[] d6 = in.getUint(97);                 // null\nif (!in.isValid()) {\n    // this will execute!\n}\n```\n\n**Builds**\n- [buffero-1.0.0.jar](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Buffero/blob/master/build/buffero-1.0.0.jar?raw=true)\n- [buffero-src-1.0.0.jar](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Buffero/blob/master/build/buffero-src-1.0.0.jar?raw=true) *- includes source code*\n- [buffero-all-1.0.0.jar](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Buffero/blob/master/build/buffero-1.0.0.jar?raw=true) *- includes all dependencies*\n- [buffero-all-src-1.0.0.jar](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Buffero/blob/master/build/buffero-src-1.0.0.jar?raw=true) *- includes all dependencies and source code*\n\n**Projects using buffero:**\n- [statastic](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Statastic)\n- [daperz](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Daperz)\n- [falcon](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Falcon)\n\n**Dependencies**\n- [curity](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Curity)\n- [testility](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Testility) *for unit tests*\n\n**Testing Examples**\n- [Testing/org/magnos/io](http://gh.magnos.org/?r=https://github.com/ClickerMonkey/Buffero/tree/master/Testing/org/magnos/io)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickermonkey%2Fbuffero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclickermonkey%2Fbuffero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickermonkey%2Fbuffero/lists"}