getty-zig / getty

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

ser: Take an optional allocator in SBs #95

Closed ibokuri closed 1 year ago

ibokuri commented 1 year ago

This allows the serialize function in SBs to allocate if necessary. For example, serializing SemanticVersion values as strings requires allocation since they can be arbitrarily long.