{"id":22666564,"url":"https://github.com/luavolk/adler32","last_synced_at":"2025-03-29T10:24:59.647Z","repository":{"id":47298508,"uuid":"162938423","full_name":"luaVolk/ADLER32","owner":"luaVolk","description":"ADLER-32 checksum in Dart","archived":false,"fork":false,"pushed_at":"2021-09-06T06:15:36.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T03:10:01.104Z","etag":null,"topics":["adler-32","checksum"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luaVolk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-12-24T01:55:05.000Z","updated_at":"2021-09-06T06:02:17.000Z","dependencies_parsed_at":"2022-08-27T10:21:19.612Z","dependency_job_id":null,"html_url":"https://github.com/luaVolk/ADLER32","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luaVolk%2FADLER32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luaVolk%2FADLER32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luaVolk%2FADLER32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luaVolk%2FADLER32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luaVolk","download_url":"https://codeload.github.com/luaVolk/ADLER32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246169728,"owners_count":20734715,"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":["adler-32","checksum"],"created_at":"2024-12-09T14:16:17.258Z","updated_at":"2025-03-29T10:24:59.623Z","avatar_url":"https://github.com/luaVolk.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADLER32 [![Pub](https://img.shields.io/pub/v/adler32.svg)](https://pub.dartlang.org/packages/adler32)\n\nPort of [SheetJS' adler32](https://github.com/SheetJS/js-adler32) written in Dart.\n\n## Instalation\n\n  ```bash\n  $ pub get adler32\n  ```\n\n## Usage\n\n  Importing this library exposes the class `Adler32` which contains 3 functions.\n\n### buf\n  `int buf(List\u003cint\u003e buf, [int seed])`\n  \n  The `buf` function takes an array of bytes as the first argument\n\n  ##### Example\n  ```dart\n  Adler32.buf([65,121,121,32,108,109,97,111,33,33,33]) // 381289312\n  ```\n\n### bstr\n  `int bstr(String bstr, [int seed])`\n  \n  The `bstr` function takes a binary string the first argument\n\n  ##### Example\n  ```dart\n  Adler32.bstr(\"Ayy lmao!!!\") // 381289312\n  ```\n\n### str\n  `int str(String str, [int seed])`\n  \n  The `str` function takes a string the first argument\n\n  ##### Example\n  ```dart\n  Adler32.str(\"Ayy lmao!!!\") // 381289312\n  ```\n### Using `seed`\nAll 3 functions take a second optional argument for the starting \"seed\"\n\n```dart\n  int adler32 = Adler32.buf([65, 121, 121]);  // 36766004  \"Ayy\"\n  adler32 = Adler32.str(\" lmao\", adler32);    // 217907965  \"Ayy lmao\"\n  Adler32.bstr(\"!!!\", adler32);               // 381289312 \"Ayy lmao!!!\"\n```\n\n## License\n   [Apache 2.0 License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluavolk%2Fadler32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluavolk%2Fadler32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluavolk%2Fadler32/lists"}