{"id":18821628,"url":"https://github.com/octu0/runlength","last_synced_at":"2025-10-10T08:16:00.184Z","repository":{"id":231002045,"uuid":"612917661","full_name":"octu0/runlength","owner":"octu0","description":"a simple run-length algorithm implementation","archived":false,"fork":false,"pushed_at":"2023-03-12T11:28:39.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T03:43:17.820Z","etag":null,"topics":["compression-algorithm","golang","runlength"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octu0.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}},"created_at":"2023-03-12T11:28:04.000Z","updated_at":"2023-03-12T11:30:54.000Z","dependencies_parsed_at":"2024-04-02T03:15:01.382Z","dependency_job_id":null,"html_url":"https://github.com/octu0/runlength","commit_stats":null,"previous_names":["octu0/runlength"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Frunlength","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Frunlength/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Frunlength/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Frunlength/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octu0","download_url":"https://codeload.github.com/octu0/runlength/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758900,"owners_count":19692041,"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":["compression-algorithm","golang","runlength"],"created_at":"2024-11-08T00:44:57.385Z","updated_at":"2025-10-10T08:15:55.137Z","avatar_url":"https://github.com/octu0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `runlength`\n\na simple run-length algorithm implementation.\n\n### Example Encode\n\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\n\t\"github.com/octu0/runlength\"\n)\n\nfunc main() {\n\tout := bytes.NewBuffer(nil)\n\tinput := []byte{1, 1, 1, 1, 1, 2, 2, 2, 3, 4, 5, 5, 5, 5}\n\n\tenc := runlength.NewEncoder(out)\n\tif err := enc.Encode(input); err != nil {\n\t\tpanic(err)\n\t}\n\tprintln(out.Bytes()) // =\u003e [5 1 3 2 1 3 1 4 4 5]\n}\n```\n\n### Example Decode\n\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\n\t\"github.com/octu0/runlength\"\n)\n\nfunc main() {\n\tout := bytes.NewBuffer(nil)\n\tinput := []byte{5, 1, 3, 2, 1, 3, 1, 4, 4, 5}\n\n\tdec := runlength.NewDecoder(bytes.NewReader(input))\n\tif err := dec.Decode(output); err != nil {\n\t\tpanic(err)\n\t}\n\tprintln(out.Bytes()) // =\u003e [1 1 1 1 1 2 2 2 3 4 5 5 5 5]\n}\n```\n\n# License\n\nMIT, see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Frunlength","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctu0%2Frunlength","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Frunlength/lists"}