Fireboltofdeath / flamework-binary-serializer

A blazing fast binary serializer, or something
6 stars 0 forks source link

Support literal unions #2

Closed Fireboltofdeath closed 6 months ago

Fireboltofdeath commented 6 months ago

This PR adds support for literal unions, which convert unions like "abc" | "xyz" into a single byte.

This also applies to non-union literals, which will also be converted into a single byte. Whilst technically we could optimize single literals into zero bytes, that case is not common enough to warrant the overhead.