{"id":16339713,"url":"https://github.com/kritzcreek/purescript-dynamic-buffer","last_synced_at":"2026-02-18T04:36:48.573Z","repository":{"id":56447463,"uuid":"310702546","full_name":"kritzcreek/purescript-dynamic-buffer","owner":"kritzcreek","description":"Growing Buffers","archived":false,"fork":false,"pushed_at":"2022-05-06T08:23:41.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T14:44:31.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kritzcreek.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-11-06T20:48:13.000Z","updated_at":"2022-05-06T08:16:47.000Z","dependencies_parsed_at":"2022-08-15T19:00:18.777Z","dependency_job_id":null,"html_url":"https://github.com/kritzcreek/purescript-dynamic-buffer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kritzcreek/purescript-dynamic-buffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kritzcreek%2Fpurescript-dynamic-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kritzcreek%2Fpurescript-dynamic-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kritzcreek%2Fpurescript-dynamic-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kritzcreek%2Fpurescript-dynamic-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kritzcreek","download_url":"https://codeload.github.com/kritzcreek/purescript-dynamic-buffer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kritzcreek%2Fpurescript-dynamic-buffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29568744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T04:18:28.490Z","status":"ssl_error","status_checked_at":"2026-02-18T04:13:49.018Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-10T23:54:58.458Z","updated_at":"2026-02-18T04:36:43.563Z","avatar_url":"https://github.com/kritzcreek.png","language":"PureScript","readme":"# purescript-dynamic-buffer\n\nGrowable buffers\n\nCan be used to build up binary data. Inspired by OCaml's buffer type.\n\nThis is a small, minimal library, with very few dependencies, which\nshould be reasonably fast.\n\nIf you're looking for a general purpose library and don't mind a few\nextra dependencies you should first take a look at\n[`arraybuffer-builder`](https://github.com/jamesdbrock/purescript-arraybuffer-builder).\n\n## Examples\n\n```purescript\nmodule Main where\n\nimport Prelude\n\nimport Data.Array as Array\nimport Data.Traversable (for_)\nimport DynamicBuffer as DBuffer\nimport Effect (Effect)\nimport Effect.Console as Console\n\nmain :: Effect Unit\nmain = do\n  buf \u003c- DBuffer.create 8\n  for_ (Array.range 1 10) do\n    DBuffer.addByte buf\n  Console.log (DBuffer.debugToString buf)\n  -- [0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA]\n```\n\nFor a more comprehensive usage check out my [encoder for the WebAssembly binary format](https://github.com/kritzcreek/purescript-wasm/blob/main/src/Wasm/Encode.purs).\n\nMore examples can also be found in the [testsuite](./test/Main.purs)\n\n\n## License\nCopyright 2020 Christoph Hegemann\n\nThis software is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkritzcreek%2Fpurescript-dynamic-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkritzcreek%2Fpurescript-dynamic-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkritzcreek%2Fpurescript-dynamic-buffer/lists"}