{"id":37188318,"url":"https://github.com/as/bo","last_synced_at":"2026-01-14T21:54:06.525Z","repository":{"id":23376090,"uuid":"26737513","full_name":"as/bo","owner":"as","description":"Package bo (byte order) provides functions for quickly serializing integers","archived":false,"fork":false,"pushed_at":"2017-02-16T23:12:05.000Z","size":599,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T02:55:46.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/as.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":"2014-11-17T03:03:41.000Z","updated_at":"2017-08-04T19:48:45.000Z","dependencies_parsed_at":"2022-08-21T23:31:10.137Z","dependency_job_id":null,"html_url":"https://github.com/as/bo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/as/bo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as%2Fbo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as%2Fbo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as%2Fbo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as%2Fbo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/as","download_url":"https://codeload.github.com/as/bo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/as%2Fbo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2026-01-14T21:54:06.018Z","updated_at":"2026-01-14T21:54:06.518Z","avatar_url":"https://github.com/as.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What\nPackage bo (byte order) provides functions for packing and unpacking 16, 32, and 64 bit integers \nto and from byte slices.\n\n## How\nThe first 8 letters of the alphabet\n\n```\n\tb := make([]byte, 8)\n\n\tad := int32(0x41424344)\n\teh := int32(0x45464748)\n\n\tbo.P32b(b, ad)\n\tbo.P32b(b[4:], eh)\n\n\tfmt.Printf(\"%v\\n\", string(b))\n\t// ABCDEFGH\n```\n\n## Why\nbo was written to pack data quickly.\nbo runs 40% slower than inline C but 2200% faster than go package encoding/binary.\nrun bench/mark.sh to benchmark on your own machine.\n\n## Install and Benchmark\n```\n\tgit clone https://github.com/as/bo\n\tcd bo/bench/\n\tchmod u+x ./mark.sh\n\t./mark.sh # needs gcc and go compiler\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fas%2Fbo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fas%2Fbo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fas%2Fbo/lists"}