{"id":23126094,"url":"https://github.com/zpg6/strlinebuf","last_synced_at":"2025-09-05T23:37:29.214Z","repository":{"id":268188738,"uuid":"903587558","full_name":"zpg6/strlinebuf","owner":"zpg6","description":"Simple no_std line buffer for separating lines from a byte stream.","archived":false,"fork":false,"pushed_at":"2024-12-15T02:10:00.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T16:36:52.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/zpg6.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":"2024-12-15T01:50:04.000Z","updated_at":"2024-12-15T02:10:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"80694f0a-13cb-4024-ae83-1a106bfe61cf","html_url":"https://github.com/zpg6/strlinebuf","commit_stats":null,"previous_names":["zpg6/strlinebuf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpg6%2Fstrlinebuf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpg6%2Fstrlinebuf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpg6%2Fstrlinebuf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpg6%2Fstrlinebuf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zpg6","download_url":"https://codeload.github.com/zpg6/strlinebuf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123087,"owners_count":20887261,"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-12-17T08:18:40.016Z","updated_at":"2025-04-04T05:12:29.814Z","avatar_url":"https://github.com/zpg6.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strlinebuf\n\nSimple `#![no_std]` line buffer for separating lines from a byte stream. For example, reading from a serial port byte by byte and assembling into lines.\n\n## Basic Usage\n\n```rust\nuse strlinebuf::LineBuffer;\n\n// Capacity of the buffer is 10 bytes\nlet mut line_buffer = LineBuffer::\u003c10\u003e::new();\nline_buffer.push_bytes(b\"Hello\\n\").unwrap();\n\nlet mut aux_buffer = [0u8; 10];\nlet bytes_read = line_buffer.read_line_bytes(\u0026mut aux_buffer).unwrap();\nlet line = core::str::from_utf8(\u0026aux_buffer[..bytes_read]).unwrap();\n\n// line == \"Hello\"\n```\n\n## Configuration\n\nYou can also configure the terminator character and the capacity of the buffer.\n\n```rust\nuse strlinebuf::{LineBuffer, LineBufferConfig, Terminator};\n\nlet line_buffer = LineBuffer::\u003c24\u003e::new_with_config(LineBufferConfig {\n    terminator: Terminator::CarriageReturn,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpg6%2Fstrlinebuf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzpg6%2Fstrlinebuf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpg6%2Fstrlinebuf/lists"}