@rbxts/buffering
v1.3.4
Published
## Create a scheme
Downloads
6
Readme
Buffering is a roblox-ts package to make buffers a lot easier to manage without making repetitive code! 😈
A light-weight, Straight to point and basic buffer library alternative to other packages
Create a scheme
const scheme = {
amount: Buffering.number(NumberType.u8),
name: Buffering.string(10),
special: Buffering.specialString(),
has: Buffering.bool(),
};Create a buffer ⚒
const buff = new Buffering<typeof scheme>(scheme);Serialize your data 💭
const data = {
amount: 21,
name: "hello world",
has: true,
special: "Auto detects the size! no errors"
};
const serialized = buff.write(data);Read your data ⼳
buff.read(serialized)Enjoy the type safety when reading and writing 🧼
