{"id":24328850,"url":"https://github.com/bread-experts-group/octet_memory_stream","last_synced_at":"2026-01-29T09:41:14.638Z","repository":{"id":272850475,"uuid":"917956789","full_name":"Bread-Experts-Group/octet_memory_stream","owner":"Bread-Experts-Group","description":"Provides a Root_Stream_Type wrapper over an array of octets in memory.","archived":false,"fork":false,"pushed_at":"2025-02-01T08:19:18.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T19:37:36.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ada","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bread-Experts-Group.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,"zenodo":null}},"created_at":"2025-01-17T00:50:59.000Z","updated_at":"2025-02-01T08:19:21.000Z","dependencies_parsed_at":"2025-01-17T01:34:54.530Z","dependency_job_id":"296f7cb6-d26f-43fc-8db1-7b549327372b","html_url":"https://github.com/Bread-Experts-Group/octet_memory_stream","commit_stats":null,"previous_names":["bread-experts-group/octet_memory_stream"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bread-Experts-Group/octet_memory_stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bread-Experts-Group%2Foctet_memory_stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bread-Experts-Group%2Foctet_memory_stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bread-Experts-Group%2Foctet_memory_stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bread-Experts-Group%2Foctet_memory_stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bread-Experts-Group","download_url":"https://codeload.github.com/Bread-Experts-Group/octet_memory_stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bread-Experts-Group%2Foctet_memory_stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28874237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T07:35:32.468Z","status":"ssl_error","status_checked_at":"2026-01-29T07:33:31.463Z","response_time":59,"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":"2025-01-17T23:32:02.022Z","updated_at":"2026-01-29T09:41:14.618Z","avatar_url":"https://github.com/Bread-Experts-Group.png","language":"Ada","funding_links":[],"categories":[],"sub_categories":[],"readme":"# octet_memory_stream\n[![View the Alire Crate](https://img.shields.io/endpoint?url=https://alire.ada.dev/badges/octet_memory_stream.json)](https://alire.ada.dev/crates/octet_memory_stream)\n\n`octet_memory_stream` provides a standalone `Ada.Streams.Root_Stream_Type`\nwrapper around an `Octet_Array` (array of 8-bit bytes,) primarily for the\npurpose of protecting an over-arching stream from misalignment while reading\nfrom, or writing to, e.g., a file format.\n\nIf the `Memory_Stream` detects an out-of-bounds error as the result of a read\nor write operation, an `Out_Of_Bounds_Error` exception will be raised.\n\n**NOTE:** This crate does not currently support writing from a `Memory_Stream`,\nhowever this is a priority and will be done so in update 1.1.0.\n\nExample Use\n-----------\nAll pertinent types and subprograms are available within the package \n`Octet_Memory_Stream`. Wrapping an `Octet_Array` is done through the\n`To_Stream` function.\n```ada\npragma Ada_2022;\n\nwith Ada.Text_IO;\nwith Ada.Streams.Stream_IO;\nuse  Ada.Streams.Stream_IO;\nwith Octet_Memory_Stream;\n\nprocedure TestDemo is\n   F                : File_Type;\n   Protected_Stream : Stream_Access;\n   Memory_Stream    : Octet_Memory_Stream.Stream_Access;\nbegin\n   Open (F, In_File, \"example\");\n   Protected_Stream := Stream (F);\n   declare\n      Data : Octet_Memory_Stream.Octet_Array (1 .. 50);\n   begin\n      Octet_Memory_Stream.Octet_Array'Read (Protected_Stream, Data);\n      Memory_Stream := Octet_Memory_Stream.To_Stream (Data);\n   end;\n   declare\n      OK_Data  : Octet_Memory_Stream.Octet_Array (1 .. 25);\n      OOB_Data : Octet_Memory_Stream.Octet_Array (1 .. 26);\n   begin\n      Octet_Memory_Stream.Octet_Array'Read (Memory_Stream, OK_Data);\n      Ada.Text_IO.Put_Line (OK_Data'Image);\n\n      Octet_Memory_Stream.Octet_Array'Read (Memory_Stream, OOB_Data);\n      --  exception raised above\n      Ada.Text_IO.Put_Line (OOB_Data'Image);\n   end;\n   Close (F);\nend TestDemo;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbread-experts-group%2Foctet_memory_stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbread-experts-group%2Foctet_memory_stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbread-experts-group%2Foctet_memory_stream/lists"}