{"id":21483553,"url":"https://github.com/burner/stringbuffer","last_synced_at":"2026-02-22T20:04:36.221Z","repository":{"id":66857802,"uuid":"82980741","full_name":"burner/StringBuffer","owner":"burner","description":"A stack based string buffer that grows into the heap if needed.","archived":false,"fork":false,"pushed_at":"2017-05-19T13:08:17.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T09:24:37.395Z","etag":null,"topics":["dlang","stack","string","stringbuffer"],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/burner.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-23T23:17:14.000Z","updated_at":"2021-03-25T18:44:52.000Z","dependencies_parsed_at":"2023-07-03T13:46:42.623Z","dependency_job_id":null,"html_url":"https://github.com/burner/StringBuffer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/burner/StringBuffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burner%2FStringBuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burner%2FStringBuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burner%2FStringBuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burner%2FStringBuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/burner","download_url":"https://codeload.github.com/burner/StringBuffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burner%2FStringBuffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29725298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T19:57:12.410Z","status":"ssl_error","status_checked_at":"2026-02-22T19:54:50.710Z","response_time":110,"last_error":"SSL_read: 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":["dlang","stack","string","stringbuffer"],"created_at":"2024-11-23T12:48:09.148Z","updated_at":"2026-02-22T20:04:36.201Z","avatar_url":"https://github.com/burner.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"StringBuffer\n============\n\n![alt text](https://travis-ci.org/burner/StringBuffer.svg?branch=master)\n\nA simple stack based StringBuffer that overflows into the heap and releases\nall used memory on destruction.\n\nBy default the StringBuffer can store 512 chars on the stack.\nIf a different number of chars on the stack is required create an\n```d\nalias MyStringBuffer = StringBufferImpl!1337;\n```\nlike this.\n\nThe two important methods of the StringBuffer are writer and getData.\nThe method writer returns a OutputRange that can be used with formattedWrite\nfrom std.format;\nThe method getData returns a string of the stored data.\nNo reference to the returned data from writer and getData must be used after\nthe associated StringBuffer is destructed.\n\nExample\n-------\n\n```d\nunittest {\n\timport std.format : formattedWrite;\n\n\tStringBuffer buf;\n\tauto w = buf.writer();\n\tformattedWrite(w, \"foobar %d\", 10);\n\tassert(buf.getData() == \"foobar 10\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburner%2Fstringbuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburner%2Fstringbuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburner%2Fstringbuffer/lists"}