{"id":17925933,"url":"https://github.com/shoenig/offheap","last_synced_at":"2025-03-24T03:31:15.551Z","repository":{"id":27809569,"uuid":"31298993","full_name":"shoenig/offheap","owner":"shoenig","description":"offheap - allocate system memory off heap in Go","archived":false,"fork":false,"pushed_at":"2024-11-01T18:45:39.000Z","size":30,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T02:38:21.863Z","etag":null,"topics":["collection","garbage","gc","go","golang","hacktoberfest","heap","memory","offheap"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"CymatiCorp/CyKITv2","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shoenig.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":"2015-02-25T05:37:35.000Z","updated_at":"2024-09-21T19:54:26.000Z","dependencies_parsed_at":"2024-06-19T05:17:46.990Z","dependency_job_id":"41353ae3-6f71-4324-b996-40070e0e80f4","html_url":"https://github.com/shoenig/offheap","commit_stats":{"total_commits":32,"total_committers":5,"mean_commits":6.4,"dds":0.53125,"last_synced_commit":"fd0582fb9a117c54c9473595ae2810d5b09bf6cf"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Foffheap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Foffheap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Foffheap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoenig%2Foffheap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoenig","download_url":"https://codeload.github.com/shoenig/offheap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245204541,"owners_count":20577370,"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":["collection","garbage","gc","go","golang","hacktoberfest","heap","memory","offheap"],"created_at":"2024-10-28T20:58:28.232Z","updated_at":"2025-03-24T03:31:15.274Z","avatar_url":"https://github.com/shoenig.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"offheap\n=======\n\nAllocate offheap memory in Go programs\n\n![GitHub](https://img.shields.io/github/license/shoenig/offheap.svg)\n\n# Project Overview\n\nPackage `offheap` provides a simple library for allocating offheap memory in\nGo programs. Doing so is useful for allocating large `[]byte` that should not\nbe managed by the garbage collector.\n\n# Getting Started\n\nThe `offheap` package can be installed by running\n\n```bash\ngo get github.com/shoenig/offheap\n ```\n\n#### Example Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github/shoenig/offheap\"\n)\n\nfunc main() {\n    var m offheap.Memory\n    var e error\n\n    // allocate 5 MB\n    if m, e = offheap.New(5 * 1024 * 1024); e != nil {\n        panic(e)\n    }\n    fmt.Println(\"m[0]\", m[0])\n\n    m[0] = 42\n    fmt.Println(\"m[0]\", m[0])\n\n    if e = m.Unmap(); e != nil {\n        panic(e)\n    }\n    fmt.Println(\"finished\")\n}\n```\n\n# Contributing\n\nPackage `offheap` is pretty minimalist, and so it's basically feature complete.\nBug fixes and good ideas though are always welcome, please just file an issue.\n\n# License\n\nThe `github.com/shoenig/offheap` module is open source under the [BSD-3-Clause](LICENSE) license.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoenig%2Foffheap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshoenig%2Foffheap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoenig%2Foffheap/lists"}