A class that can be converted into Span<std::byte>, can be passed into the serialize functions (like write) as-is after commit 196b4599201dbce3e0317e9b98753fa6a244b82d. This avoids a manual construction of the Span with pointer casts, etc.
Do this for SafeDbt.