BitPacker
Stefander Games
$39.99
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
04/24(2021) |
39.99 |
12/13(2021) |
20.0 |
01/12(2022) |
39.99 |
11/20(2024) |
39.99 |
Jump AssetStore
BitPacker is a collection of tools for efficiently writing and reading data without letting any bit go to waste. Use it to optimize your network messages, save data and more!Save and network data is getting incredibly complex in modern games. Unfortunately, commonly used serialization (such as XML/JSON and BinaryFormatter) doesn't tightly pack your data, resulting in large chunks of unused bits. As many network and gameplay programmers know, manually writing code for tightly packing the data using bitfields is incredibly time consuming and complex, especially when dealing with data that can spill over into other bytes.BitPacker aims to solve this problem by stripping away all unnecessary and duplicated information and utilizing every single bit to the fullest, resulting in the smallest outputs possible. It has been battle tested for performance and ease of use, and it’s currently being used in multiple big productions, including the Besiege multiplayer and level editor code (by Spiderling Studios) and The Falconeer (by Tomas Sala).HIGHLIGHTS- Easy to use read/write API- A fully featured serializer that supports many of Unity's built-in types- Intelligent integer and string packing and quaternion optimizations- Use powerful arguments to help shrink the data size even more- Detailed examples with line-by-line comments for BitPacker's common methods- Includes the full source codeBitSerializerThe fully featured serializer, built on top of the BitWriter and BitReader tools, is responsible for squeezing preexisting data classes (also commonly models) into as few bits as possible, without having to write any code. On top of (unsigned) integers, Booleans and bytes, it also supports a wide range of other built-in types, such as string, Vector3, Quaternion and Guid.BitWriterTo have more control over what is written and how it is written, you can use this class directly. Depending on your needs, you can write to any Stream or preexisting byte array. It provides a wide range of convenient methods that allow you to quickly lay down the groundwork for any type of data you might need.BitReaderOnce you’ve written out data using BitWriter, you can use the complimenting methods to read the data back out again. Like BitWriter, it supports reading from either a Stream or a preexisting byte array.