Skip to content

v1.2

Choose a tag to compare

@EmK530 EmK530 released this 06 Jan 13:46
· 81 commits to main since this release
8682187
  • 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))

image

Full Changelog: v1.1...v1.2