Repository navigation
v1.2
- Added new Table datatype
This accepts a variable number of datatype arguments which get encoded into a table, costing one byte.
local buf = NetShrink.Encode(
NetShrink.UInt8(1),
NetShrink.Table(
NetShrink.UInt8(2),
NetShrink.UInt8(4),
NetShrink.Table(
NetShrink.UInt8(8),
NetShrink.UInt8(16)
),
NetShrink.UInt8(32)
),
NetShrink.UInt8(64)
)
print("Encoded with size of",buffer.len(buf),"bytes.")
print(NetShrink.Decode(buf,true))
Full Changelog: v1.1...v1.2
