{"id":26218438,"url":"https://github.com/aftersol/convendian","last_synced_at":"2026-04-26T01:31:46.874Z","repository":{"id":280522791,"uuid":"942292765","full_name":"Aftersol/convEndian","owner":"Aftersol","description":"C Library for converting endianness","archived":false,"fork":false,"pushed_at":"2026-03-14T09:10:34.000Z","size":305,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-14T19:46:37.548Z","etag":null,"topics":["c","endian","endianess","endianness"],"latest_commit_sha":null,"homepage":"https://aftersol.github.io/convEndian/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aftersol.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-03T22:02:24.000Z","updated_at":"2026-03-14T09:10:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"89ca9fb7-88ee-4510-a68b-a7e4691c559e","html_url":"https://github.com/Aftersol/convEndian","commit_stats":null,"previous_names":["aftersol/convendian"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Aftersol/convEndian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aftersol%2FconvEndian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aftersol%2FconvEndian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aftersol%2FconvEndian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aftersol%2FconvEndian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aftersol","download_url":"https://codeload.github.com/Aftersol/convEndian/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aftersol%2FconvEndian/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32283294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: 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":["c","endian","endianess","endianness"],"created_at":"2025-03-12T13:16:59.955Z","updated_at":"2026-04-26T01:31:46.869Z","avatar_url":"https://github.com/Aftersol.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Endian Conversion Library\n\nA library for converting between endianness that doesn't depend on external libraries.\n\nPlace ```conv_endian.c``` and ```conv_endian.h``` into your source files\n\nThe library can be optionally be built by calling make or using CMake\n\n## Downloads\n\n[You can download the source code for the library here: https://github.com/Aftersol/convEndian/releases](https://github.com/Aftersol/convEndian/releases)\n\n---\n\n## Examples\n\n### Reading big endian data\n\n```c\n//...\n\n// receive data\n\nchar yourBuffer[512];\nint* ptr_to_buffer = (int*)yourBuffer;\nint value;\n\n// read big endian\nfread(yourBuffer, sizeof(int), 1, yourfile);\n\nvalue = *ptr_to_buffer;\n\n// to be converted and store in whatever endian your machine runs on\nvalue = read_be_u32(value);\n\n//...\n\n```\n\n### Writing big endian data\n\n```c\n//...\n\n// write or send data\n\n// to be converted into big endian value\nint value = 1234567890;\nvalue = convert_to_be_u32(value);\n\n// write big endian integer\nfwrite(\u0026value, sizeof(int), 1, yourfile);\n\n//...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faftersol%2Fconvendian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faftersol%2Fconvendian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faftersol%2Fconvendian/lists"}