Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BufferUtil

Serialization library.

BufferUtil is fast and cheap serialization library for completely different tasks, be it one-time or continuous data serialization.

Inspired by BufferUtil and Sera.

Benchmark

All benchmarks were performed using Scriptbench, and the benchmark code is located in the Benchmark folder.

RobloxStudioBeta_LkSesEfeZJ RobloxStudioBeta_n5jobCB2kS RobloxStudioBeta_umYxgqLWcz

Setup

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)


API Reference

Every added/existing type must have .Read and .Write functions.

.Write(buf: buffer, offset: number, value: Type): buffer

.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(buf: buffer, offset: number): Type

.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.

About

Fast and cheap serialization library.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages