BufferUtil is fast and cheap serialization library for completely different tasks, be it one-time or continuous data serialization.
Inspired by BufferUtil and Sera.
All benchmarks were performed using Scriptbench, and the benchmark code is located in the Benchmark folder.
There are 2 options for installing BufferUtil.
-
Download latest rbxm file from Releases. After downloading throw rbxm file into Roblox Studio and it will appear in the workspace.
-
Add library from creator store. (Currently unavailable)
Every added/existing type must have .Read and .Write functions.
.Write writes the value to buf at offset, and returns buf (If the buf is nil, it will be created)
local write = BufferUtil.Float.Write(nil, 0, 100).Read reads and returns the value that you .Write, from the buf at offset.
local read = BufferUtil.Float.Read(write, 0)BufferUtil is released under the MIT License.