{"id":22065982,"url":"https://github.com/iij/mruby-pack","last_synced_at":"2025-07-08T18:34:59.408Z","repository":{"id":6153386,"uuid":"7382751","full_name":"iij/mruby-pack","owner":"iij","description":"Array#pack and String#unpack for mruby","archived":false,"fork":false,"pushed_at":"2017-06-07T02:09:43.000Z","size":55,"stargazers_count":6,"open_issues_count":0,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-13T01:53:35.284Z","etag":null,"topics":["mruby"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iij.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-31T02:30:57.000Z","updated_at":"2018-07-20T00:39:54.000Z","dependencies_parsed_at":"2022-09-24T05:00:21.160Z","dependency_job_id":null,"html_url":"https://github.com/iij/mruby-pack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iij/mruby-pack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-pack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-pack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-pack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-pack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iij","download_url":"https://codeload.github.com/iij/mruby-pack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-pack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264324503,"owners_count":23590880,"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":["mruby"],"created_at":"2024-11-30T19:22:57.792Z","updated_at":"2025-07-08T18:34:59.385Z","avatar_url":"https://github.com/iij.png","language":"C","readme":"mruby-pack (pack / unpack)\n=========\n\nmruby-pack provides `Array#pack` and `String#unpack` for mruby.\n\n\n## Installation\nAdd the line below into your `build_config.rb`:\n\n```\n  conf.gem :github =\u003e 'iij/mruby-pack'\n```\n\nThere is no dependency on other mrbgems.\n\n\n## Supported template string\n - A : arbitrary binary string (space padded, count is width)\n - a : arbitrary binary string (null padded, count is width)\n - C : 8-bit unsigned (unsigned char)\n - c : 8-bit signed (signed char)\n - D, d: 64-bit float, native format\n - E : 64-bit float, little endian byte order\n - e : 32-bit float, little endian byte order\n - F, f: 32-bit float, native format\n - G : 64-bit float, network (big-endian) byte order\n - g : 32-bit float, network (big-endian) byte order\n - H : hex string (high nibble first)\n - h : hex string (low nibble first)\n - I : unsigned integer, native endian (`unsigned int` in C)\n - i : signed integer, native endian (`int` in C)\n - L : 32-bit unsigned, native endian (`uint32_t`)\n - l : 32-bit signed, native endian (`int32_t`)\n - m : base64 encoded string (see RFC 2045, count is width)\n - N : 32-bit unsigned, network (big-endian) byte order\n - n : 16-bit unsigned, network (big-endian) byte order\n - Q : 64-bit unsigned, native endian (`uint64_t`)\n - q : 64-bit signed, native endian (`int64_t`)\n - S : 16-bit unsigned, native endian (`uint16_t`)\n - s : 16-bit signed, native endian (`int16_t`)\n - U : UTF-8 character\n - V : 32-bit unsigned, VAX (little-endian) byte order\n - v : 16-bit unsigned, VAX (little-endian) byte order\n - x : null byte\n - Z : same as \"a\", except that null is added with *\n\n\n\n## License\n\nCopyright (c) 2012 Internet Initiative Japan Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a \ncopy of this software and associated documentation files (the \"Software\"), \nto deal in the Software without restriction, including without limitation \nthe rights to use, copy, modify, merge, publish, distribute, sublicense, \nand/or sell copies of the Software, and to permit persons to whom the \nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in \nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \nDEALINGS IN THE SOFTWARE.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiij%2Fmruby-pack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiij%2Fmruby-pack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiij%2Fmruby-pack/lists"}