{"repo":"MrUnbelievable92/Bit-Collections","free":true,"listed":false,"github":"https://github.com/MrUnbelievable92/Bit-Collections","clone":"git clone https://github.com/MrUnbelievable92/Bit-Collections.git","description":"A bit-packing library providing contiguous data structures of bits and signed/unsigned integers with arbitrary (non-standard) bit widths","language":"C#","stars":27,"topics":["collections","csharp","unity","compression","compression-library","lossless-data-compression","ram","bitpacking"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"Bit Collections Bit Collections for Unity is all about saving as much RAM and/or network bandwidth as possible with a minimal performance trade-off, by providing stack and heap allocated bits, as well as stack and heap allocated signed and unsigned integers with an arbitrary number of bits between 1 and 63. The compression applied is geared towards performance first, but can and should also be used before applying advanced compression algorithms on your data. Functionality Value Types BitInt The most fundamental building block in this library is the interface BitInt . It defines how many bits an integer has and whether or not it is signed. All integers between 1 and 63 bits are defined as types, named (U)Int[n] , except for Bit , which is only available as an unsigned integer. These types are only used as generic type parameters and should not be instantiated. Byte Ints Among all BitInt s are all integers consisting of a multiple of eight bits, which are implemented as fully usable types with the entire standard C# API for integers, and they integrate with all C# integer and floating point types as well as Unity.Mathematics and MaxMath types such as vectors and MaxMath.UInt128 or MaxMath.quadruple . Now that we have all integers taking up all of 1 to 8 bytes exactly, we define the following three groups of value types: Bit Arrays bit8 , bit16 , bit24 , bit32 , bit40 , bit48 , bit56 , bit64 , and a bits struct hold packed bits that can be read out as bool s and written individ","default_branch":null,"files":null,"tree":[],"storefront":"/r/MrUnbelievable92","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MrUnbelievable92/Bit-Collections/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}