{"id":23819036,"url":"https://github.com/scodec/scodec-bits","last_synced_at":"2025-05-15T02:07:42.005Z","repository":{"id":13863690,"uuid":"16561509","full_name":"scodec/scodec-bits","owner":"scodec","description":"Provides immutable datatypes for working with bits and bytes","archived":false,"fork":false,"pushed_at":"2025-05-06T13:51:46.000Z","size":4151,"stargazers_count":116,"open_issues_count":2,"forks_count":59,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-06T15:02:05.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scodec.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2014-02-05T22:49:09.000Z","updated_at":"2025-05-06T13:51:51.000Z","dependencies_parsed_at":"2024-02-23T14:24:28.755Z","dependency_job_id":"5086c449-9e99-4d25-a31f-209cb5b01c44","html_url":"https://github.com/scodec/scodec-bits","commit_stats":null,"previous_names":[],"tags_count":75,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scodec%2Fscodec-bits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scodec%2Fscodec-bits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scodec%2Fscodec-bits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scodec%2Fscodec-bits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scodec","download_url":"https://codeload.github.com/scodec/scodec-bits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259383,"owners_count":22040820,"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":"2025-01-02T06:32:01.550Z","updated_at":"2025-05-15T02:07:41.987Z","avatar_url":"https://github.com/scodec.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Discord](https://img.shields.io/discord/632277896739946517.svg?label=\u0026logo=discord\u0026logoColor=ffffff\u0026color=404244\u0026labelColor=6A7EC2)](https://discord.gg/wKn3cpfRVz)\n[![Maven Central](https://img.shields.io/maven-central/v/org.scodec/scodec-bits_3)](https://maven-badges.herokuapp.com/maven-central/org.scodec/scodec-bits_3)\n[![javadoc](https://javadoc.io/badge2/org.scodec/scodec-bits_3/javadoc.svg)](https://javadoc.io/doc/org.scodec/scodec-bits_3)\n\nscodec-bits\n===========\n\nProvides persistent datatypes for working with bits and bytes.\n\nDesign Constraints\n------------------\n - No dependencies on other libraries in order to be applicable to as many projects as possible.\n\nAdministrative\n--------------\n\nThis project is licensed under a [3-clause BSD license](LICENSE).\n\nThe [scodec channel on Typelevel Discord](https://discord.gg/wKn3cpfRVz) is a good place to go for help.\n\nIntroduction\n------------\n\nThere are two fundamental data structures provided:\n - [`BitVector`](core/shared/src/main/scala/scodec/bits/BitVector.scala)\n - [`ByteVector`](core/shared/src/main/scala/scodec/bits/ByteVector.scala)\n\nBoth datatypes provide collection like functionality, although neither directly implement the Scala\ncollection library traits. Both are implemented as binary trees where each node is either a leaf\nnode containing bits/bytes or is an inner node containing an operation on other trees (e.g., append).\nAs a result, many operations are implemented in logarithmic time with respect to the depth of the tree.\n\nBoth strict and lazy constructors are provided. Of particular interest are the methods that work\nwith Java NIO sources like `java.nio.channels.ReadableByteChannel` and `java.nio.channels.FileChannel`,\nwhich allow efficient, lazy access and manipulation of bits and bytes from a variety of sources.\n\nHexadecimal and binary string literals are supported via the `hex` and `bin` string interpolators.\nFor example:\n\n    val x: ByteVector = hex\"deadbeef\"\n    val y: BitVector = bin\"00101101010010101\"\n\nBase conversions to and from strings are supported. Binary, hexadecimal, and base 64 conversions are\nsupported. Each have a default alphabet but support alternative alphabets as well as user defined\nalphabets.\n\nFor more information, see the [API documentation](https://javadoc.io/doc/org.scodec/scodec-bits_3).\n\nFor a combinator based approach to encoding values to/from binary, see the companion project [scodec](https://github.com/scodec/scodec).\n\nGetting Binaries\n----------------\n\nSee the [releases page on the website](http://scodec.org/releases/).\n\nBuilding\n--------\n\nThis project uses sbt and requires node.js to be installed in order to run Scala.js tests. To build, run `sbt publishLocal`.\n\nCode of Conduct\n---------------\n\nSee the [Code of Conduct](CODE_OF_CONDUCT.md).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscodec%2Fscodec-bits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscodec%2Fscodec-bits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscodec%2Fscodec-bits/lists"}