{"id":17233332,"url":"https://github.com/marianoguerra/sblob","last_synced_at":"2025-06-15T05:34:04.313Z","repository":{"id":20151548,"uuid":"23421983","full_name":"marianoguerra/sblob","owner":"marianoguerra","description":"blobs, stream of blobs","archived":false,"fork":false,"pushed_at":"2016-03-10T16:08:36.000Z","size":1063,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T11:16:24.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/marianoguerra.png","metadata":{"files":{"readme":"README.rst","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":"2014-08-28T09:09:59.000Z","updated_at":"2016-03-10T16:02:51.000Z","dependencies_parsed_at":"2022-09-01T12:32:01.254Z","dependency_job_id":null,"html_url":"https://github.com/marianoguerra/sblob","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marianoguerra/sblob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2Fsblob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2Fsblob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2Fsblob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2Fsblob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marianoguerra","download_url":"https://codeload.github.com/marianoguerra/sblob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2Fsblob/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259926962,"owners_count":22933132,"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-10-15T05:02:45.420Z","updated_at":"2025-06-15T05:34:04.286Z","avatar_url":"https://github.com/marianoguerra.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sblob\n=====\n\nIndexes\n-------\n\nsblob\n.....\n\nIndex: Seqnum\nValue: Offset\n\nThe usage of the index for sblobs is: given a seqnum I want give me the offset\nin the file, for this it looks at the closest seqnum (array index) that has the\noffset defined (array value), then it reads until the required seqnum filling\nthe index along the way and then it reads the required sblob.\n\nThe index transversal is, I start from the seqnum I want and check if the value\nis set, if not I go backwards until I find it or I get to the first array\nindex, if not found return the atom notfound which will cause all sblobs from\nthe beginning of the file to be read, filling the index along the way.\n\nIn this case closest means closest lower or equal seqnum.\n\ngblob\n.....\n\nIndex: Chunk Number\nValue: Start Seqnum\n\nThe usage of the index for gblobs is: given a seqnum I want to start reading\nfrom, give me the file chunk number where it's located so I can start reading\nfrom there, for this it looks at the values of the array from left to right\nuntil it finds the closest seqnum (array value) and returns the chunk number\n(array index).\n\nIn this case closest means closest lower or equal seqnum.\n\nTesting\n-------\n\nto run all tests:\n\n::\n\n    make eunit\n\nto test one module::\n\n    ./rebar eunit suites=gblob_tests skip_deps=true\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianoguerra%2Fsblob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarianoguerra%2Fsblob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianoguerra%2Fsblob/lists"}