getty-zig / getty

A (de)serialization framework for Zig
https://getty.so
MIT License
189 stars 13 forks source link

Add support for std.PackedIntArray and std.PackedIntSlice #59

Closed ibokuri closed 1 year ago

ibokuri commented 1 year ago

Support for std.PackedIntArray was added for both serialization and deserialization.

However, support for std.PackedIntSlice was only added to serialization. I don't think there's a way to make them directly. As an alternative, one can just deserialize into a std.PackedIntArray first and then slice into a std.PackedIntSlice.