fn resetState(self: *DecoderState, allocator: Allocator, new_props: Properties) !void
self: *DecoderState,
allocator: Allocator,
new_props: Properties,