{"id":23682747,"url":"https://github.com/himeyama/numo-binrw","last_synced_at":"2026-01-04T04:30:14.642Z","repository":{"id":56885928,"uuid":"390226562","full_name":"Himeyama/numo-binrw","owner":"Himeyama","description":"バイナリファイルを読み込んで NArray オブジェクトを生成、または書き込みます。(gem 配布中)","archived":false,"fork":false,"pushed_at":"2021-09-05T14:11:02.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-15T02:51:07.345Z","etag":null,"topics":["gem","narray","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/numo-binrw","language":"Ruby","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/Himeyama.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}},"created_at":"2021-07-28T05:34:46.000Z","updated_at":"2022-03-22T18:17:19.000Z","dependencies_parsed_at":"2022-08-21T00:20:52.194Z","dependency_job_id":null,"html_url":"https://github.com/Himeyama/numo-binrw","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himeyama%2Fnumo-binrw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himeyama%2Fnumo-binrw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himeyama%2Fnumo-binrw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himeyama%2Fnumo-binrw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himeyama","download_url":"https://codeload.github.com/Himeyama/numo-binrw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239734527,"owners_count":19688256,"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":["gem","narray","ruby"],"created_at":"2024-12-29T19:54:14.931Z","updated_at":"2026-01-04T04:30:14.580Z","avatar_url":"https://github.com/Himeyama.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numo-binrw\n\n[![build](https://github.com/Himeyama/numo-binrw/actions/workflows/build.yml/badge.svg)](https://github.com/Himeyama/numo-binrw/actions/workflows/build.yml) [![Gem Version](https://badge.fury.io/rb/numo-binrw.svg)](https://badge.fury.io/rb/numo-binrw)\n\n## 開発状況\n- [x] 書き込み\n    - [x] 複数のファイル書き込み\n    - 対応型\n        - [x] 倍精度浮動小数点数\n        - [x] 単精度浮動小数点\n        - [x] 32 Bit 整数\n        - [x] 64 Bit 整数\n- [x] 読み込み\n    - [x] 複数のファイルから読み込み\n    - 対応型\n        - [x] 倍精度浮動小数点数\n        - [x] 単精度浮動小数点\n        - [x] 32 Bit 整数\n        - [x] 64 Bit 整数\n\n## 使用法\n```rb\nrequire \"numo/binrw\"\n\n# 書き込み (例: 倍精度浮動小数点数)\na = Numo::DFloat.cast(0...100)\na.bin_write(\"dfdata.bin\")\n\n# 他の型で書き込み (例: 単精度浮動小数点)\nb = Numo::SFloat.cast(0...100)\nb.bin_write(\"fdata.bin\")\n\n# 複数ファイルに書き込み\nc = Numo::Int32.cast(0...100).reshape(4, true)\nc.bin_write([\"idata01.bin\", \"idata02.bin\", \"idata03.bin\", \"idata04.bin\"])\n\n# 読み込み\nd = Numo::Int32.bin_read(\"idata01.bin\")\np d\n\n## 複数ファイルから読み込み\ne = Numo::Int32.bin_read([\"idata01.bin\", \"idata02.bin\", \"idata03.bin\", \"idata04.bin\"])\np e\n```\n\n## インストール\n```sh\ngem install numo-binrw\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimeyama%2Fnumo-binrw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimeyama%2Fnumo-binrw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimeyama%2Fnumo-binrw/lists"}