{"id":20057172,"url":"https://github.com/avuserow/perl6-compress-snappy","last_synced_at":"2025-05-05T14:31:01.738Z","repository":{"id":16270353,"uuid":"19018602","full_name":"avuserow/perl6-compress-snappy","owner":"avuserow","description":"Perl6 bindings to (de)compress data in Google's Snappy compression format","archived":false,"fork":false,"pushed_at":"2022-06-29T01:00:01.000Z","size":25,"stargazers_count":5,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T22:42:09.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Raku","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/avuserow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-22T05:46:39.000Z","updated_at":"2022-07-02T15:05:54.000Z","dependencies_parsed_at":"2022-08-04T08:45:15.573Z","dependency_job_id":null,"html_url":"https://github.com/avuserow/perl6-compress-snappy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avuserow%2Fperl6-compress-snappy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avuserow%2Fperl6-compress-snappy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avuserow%2Fperl6-compress-snappy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avuserow%2Fperl6-compress-snappy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avuserow","download_url":"https://codeload.github.com/avuserow/perl6-compress-snappy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252514871,"owners_count":21760451,"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":[],"created_at":"2024-11-13T12:57:58.813Z","updated_at":"2025-05-05T14:31:01.450Z","avatar_url":"https://github.com/avuserow.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nCompress::Snappy - (de)compress data in Google's Snappy compression format\n\n# INSTALLATION\n\n`libsnappy-dev` or equivalent needs to be installed for this to\nwork. Issue \n\n    sudo apt-get install libsnappy-dev\n    \nor equivalent order in other operatins systems or distros to do so.\n\n# SYNOPSIS\n\n```perl6\nmy Buf $compressed = Compress::Snappy::compress(\"hello, world\");\nmy Bool $valid = Compress::Snappy::validate($compressed);\nmy Buf $decompressed = Compress::Snappy::decompress($compressed);\n```\n\nSee also examples/test.p6\n\n# DESCRIPTION\n\nThis module uses NativeCall to provide bindings to the C API for libsnappy, a\ncompression library with an emphasis on speed over compression.\n\n# FUNCTIONS\n\n## Compress::Snappy::compress(Blob $uncompressed) returns Buf\n\nMain compression function. Returns a Buf of compressed data.\n\n## Compress::Snappy::compress(Str $uncompressed, Str $encoding = 'utf-8') returns Buf\n\nConvenience function to make a Str to an encoded Blob and compress that.\nEncoding defaults to utf-8 if not specified.\n\n## Compress::Snappy::decompress(Blob $compressed, Str $encoding)\n\nDecompress provided data to a Buf.  If an optional $encoding is\nspecified, will decode the Buf and return a Str instead.\n\n## Compress::Snappy::validate(Blob $compressed) returns Bool\n\nReturns if the compressed data is valid, without fully decompressing it.\n\n# SEE ALSO\n\n[Snappy on Google Code](https://code.google.com/p/snappy/)\n\n[Snappy on GitHub](https://github.com/google/snappy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favuserow%2Fperl6-compress-snappy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favuserow%2Fperl6-compress-snappy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favuserow%2Fperl6-compress-snappy/lists"}